Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
4dae107d
Commit
4dae107d
authored
Mar 30, 2015
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alternative depth range in OpenGL GAL.
parent
09f2af3c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
graphics_abstraction_layer.cpp
common/gal/graphics_abstraction_layer.cpp
+2
-2
opengl_gal.cpp
common/gal/opengl/opengl_gal.cpp
+1
-1
view.h
include/view/view.h
+1
-1
No files found.
common/gal/graphics_abstraction_layer.cpp
View file @
4dae107d
...
@@ -249,6 +249,6 @@ VECTOR2D GAL::GetGridPoint( const VECTOR2D& aPoint ) const
...
@@ -249,6 +249,6 @@ VECTOR2D GAL::GetGridPoint( const VECTOR2D& aPoint ) const
round
(
(
aPoint
.
y
-
gridOffset
.
y
)
/
gridSize
.
y
)
*
gridSize
.
y
+
gridOffset
.
y
);
round
(
(
aPoint
.
y
-
gridOffset
.
y
)
/
gridSize
.
y
)
*
gridSize
.
y
+
gridOffset
.
y
);
}
}
const
int
GAL
::
MIN_DEPTH
=
-
256
;
const
int
GAL
::
MIN_DEPTH
=
-
1024
;
const
int
GAL
::
MAX_DEPTH
=
255
;
const
int
GAL
::
MAX_DEPTH
=
1023
;
const
int
GAL
::
GRID_DEPTH
=
MAX_DEPTH
-
1
;
const
int
GAL
::
GRID_DEPTH
=
MAX_DEPTH
-
1
;
common/gal/opengl/opengl_gal.cpp
View file @
4dae107d
...
@@ -42,7 +42,7 @@ using namespace KIGFX;
...
@@ -42,7 +42,7 @@ using namespace KIGFX;
// Prototypes
// Prototypes
void
InitTesselatorCallbacks
(
GLUtesselator
*
aTesselator
);
void
InitTesselatorCallbacks
(
GLUtesselator
*
aTesselator
);
const
int
glAttributes
[]
=
{
WX_GL_RGBA
,
WX_GL_DOUBLEBUFFER
,
WX_GL_DEPTH_SIZE
,
8
,
0
};
const
int
glAttributes
[]
=
{
WX_GL_RGBA
,
WX_GL_DOUBLEBUFFER
,
WX_GL_DEPTH_SIZE
,
24
,
0
};
wxGLContext
*
OPENGL_GAL
::
glContext
=
NULL
;
wxGLContext
*
OPENGL_GAL
::
glContext
=
NULL
;
...
...
include/view/view.h
View file @
4dae107d
...
@@ -530,7 +530,7 @@ public:
...
@@ -530,7 +530,7 @@ public:
const
BOX2I
CalculateExtents
()
;
const
BOX2I
CalculateExtents
()
;
static
const
int
VIEW_MAX_LAYERS
=
256
;
///< maximum number of layers that may be shown
static
const
int
VIEW_MAX_LAYERS
=
128
;
///< maximum number of layers that may be shown
private
:
private
:
struct
VIEW_LAYER
struct
VIEW_LAYER
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment