Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs/xsp
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-03-16 16:02:28 +0300
committerbubnikv <bubnikv@gmail.com>2017-03-16 16:02:28 +0300
commit7f7d2da5fe550a256169f9b806369833a8aafbf8 (patch)
treedc8e7c9c88a61660152c775912351f53c5a2f6d1 /xs/xsp
parentc32c7fa1dcb99f94f08ca0db42e7f8961cdf33db (diff)
Use Vertex Buffer Objects for rendering of 3D volumes if possible.
Diffstat (limited to 'xs/xsp')
-rw-r--r--xs/xsp/GUI_3DScene.xsp22
1 files changed, 10 insertions, 12 deletions
diff --git a/xs/xsp/GUI_3DScene.xsp b/xs/xsp/GUI_3DScene.xsp
index 4532b16ea..b70d99abe 100644
--- a/xs/xsp/GUI_3DScene.xsp
+++ b/xs/xsp/GUI_3DScene.xsp
@@ -38,17 +38,7 @@
bool empty() const;
bool indexed() const;
- void* triangles_to_render_ptr();
- size_t triangles_to_render_cnt();
- size_t geometry_size() const;
- void* triangle_indices_ptr();
- void* quad_indices_ptr();
- size_t indexed_triangles_cnt();
- size_t indexed_quads_cnt();
- size_t triangle_indices_to_render_offset() const;
- size_t quad_indices_to_render_offset() const;
- size_t indexed_triangles_to_render_cnt() const;
- size_t indexed_quads_to_render_cnt() const;
+ void render() const;
bool has_layer_height_texture();
int layer_height_texture_width();
@@ -72,8 +62,10 @@
int count()
%code{% RETVAL = THIS->volumes.size(); %};
-
+
void set_range(double low, double high);
+
+ void release_geometry();
%{
SV*
@@ -95,6 +87,12 @@ GLVolumeCollection::arrayref()
%package{Slic3r::GUI::_3DScene};
%{
+
+void
+_glew_init()
+ CODE:
+ _3DScene::_glew_init();
+
void
_load_print_toolpaths(print, volumes, use_VBOs)
Print *print;