Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
f4dc4639
Commit
f4dc4639
authored
Apr 02, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to do if use_vbo check, .ptr value for vbos is 0
parent
56803dc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
actors.py
printrun/gl/libtatlin/actors.py
+4
-16
No files found.
printrun/gl/libtatlin/actors.py
View file @
f4dc4639
...
@@ -584,10 +584,7 @@ class GcodeModel(Model):
...
@@ -584,10 +584,7 @@ class GcodeModel(Model):
def
_display_travels
(
self
,
has_vbo
):
def
_display_travels
(
self
,
has_vbo
):
self
.
travel_buffer
.
bind
()
self
.
travel_buffer
.
bind
()
if
has_vbo
:
glVertexPointer
(
3
,
GL_FLOAT
,
0
,
self
.
travel_buffer
.
ptr
)
glVertexPointer
(
3
,
GL_FLOAT
,
0
,
None
)
else
:
glVertexPointer
(
3
,
GL_FLOAT
,
0
,
self
.
travel_buffer
.
ptr
)
# TODO: show current layer travels in a different color
# TODO: show current layer travels in a different color
end
=
self
.
layer_stops
[
min
(
self
.
num_layers_to_draw
,
self
.
max_layers
)]
end
=
self
.
layer_stops
[
min
(
self
.
num_layers_to_draw
,
self
.
max_layers
)]
...
@@ -616,22 +613,13 @@ class GcodeModel(Model):
...
@@ -616,22 +613,13 @@ class GcodeModel(Model):
def
_display_movements
(
self
,
has_vbo
):
def
_display_movements
(
self
,
has_vbo
):
self
.
vertex_buffer
.
bind
()
self
.
vertex_buffer
.
bind
()
if
has_vbo
:
glVertexPointer
(
3
,
GL_FLOAT
,
0
,
self
.
vertex_buffer
.
ptr
)
glVertexPointer
(
3
,
GL_FLOAT
,
0
,
None
)
else
:
glVertexPointer
(
3
,
GL_FLOAT
,
0
,
self
.
vertex_buffer
.
ptr
)
self
.
vertex_color_buffer
.
bind
()
self
.
vertex_color_buffer
.
bind
()
if
has_vbo
:
glColorPointer
(
3
,
GL_FLOAT
,
0
,
self
.
vertex_color_buffer
.
ptr
)
glColorPointer
(
3
,
GL_FLOAT
,
0
,
None
)
else
:
glColorPointer
(
3
,
GL_FLOAT
,
0
,
self
.
vertex_color_buffer
.
ptr
)
self
.
vertex_normal_buffer
.
bind
()
self
.
vertex_normal_buffer
.
bind
()
if
has_vbo
:
glNormalPointer
(
GL_FLOAT
,
0
,
self
.
vertex_normal_buffer
.
ptr
)
glNormalPointer
(
GL_FLOAT
,
0
,
None
)
else
:
glNormalPointer
(
GL_FLOAT
,
0
,
self
.
vertex_normal_buffer
.
ptr
)
self
.
index_buffer
.
bind
()
self
.
index_buffer
.
bind
()
...
...
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