Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
3DScene.cpp File Reference
#include <GL/glew.h>
#include "3DScene.hpp"
#include "GLShader.hpp"
#include "GUI_App.hpp"
#include "Plater.hpp"
#include "BitmapCache.hpp"
#include "Camera.hpp"
#include "libslic3r/BuildVolume.hpp"
#include "libslic3r/ExtrusionEntity.hpp"
#include "libslic3r/ExtrusionEntityCollection.hpp"
#include "libslic3r/Geometry.hpp"
#include "libslic3r/Print.hpp"
#include "libslic3r/SLAPrint.hpp"
#include "libslic3r/Slicing.hpp"
#include "libslic3r/Format/STL.hpp"
#include "libslic3r/Utils.hpp"
#include "libslic3r/AppConfig.hpp"
#include "libslic3r/PresetBundle.hpp"
#include "libslic3r/ClipperUtils.hpp"
#include "libslic3r/Tesselate.hpp"
#include "libslic3r/PrintConfig.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <boost/log/trivial.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <Eigen/Dense>
+ Include dependency graph for 3DScene.cpp:

Go to the source code of this file.

Namespaces

namespace  Slic3r
 

Functions

void glAssertRecentCallImpl (const char *file_name, unsigned int line, const char *function_name)
 
ColorRGBA Slic3r::color_from_model_volume (const ModelVolume &model_volume)
 
GLVolumeWithIdAndZList Slic3r::volumes_to_render (const GLVolumePtrs &volumes, GLVolumeCollection::ERenderType type, const Transform3d &view_matrix, std::function< bool(const GLVolume &)> filter_func)
 
static void Slic3r::thick_lines_to_geometry (const Lines &lines, const std::vector< double > &widths, const std::vector< double > &heights, bool closed, double top_z, GUI::GLModel::Geometry &geometry)
 
static void Slic3r::thick_lines_to_geometry (const Lines3 &lines, const std::vector< double > &widths, const std::vector< double > &heights, bool closed, GUI::GLModel::Geometry &geometry)
 

Function Documentation

◆ glAssertRecentCallImpl()

void glAssertRecentCallImpl ( const char *  file_name,
unsigned int  line,
const char *  function_name 
)
39{
40#if defined(NDEBUG)
41 // In release mode, only show OpenGL errors if sufficiently high loglevel.
43 return;
44#endif // NDEBUG
45
46 GLenum err = glGetError();
47 if (err == GL_NO_ERROR)
48 return;
49 const char* sErr = 0;
50 switch (err) {
51 case GL_INVALID_ENUM: sErr = "Invalid Enum"; break;
52 case GL_INVALID_VALUE: sErr = "Invalid Value"; break;
53 // be aware that GL_INVALID_OPERATION is generated if glGetError is executed between the execution of glBegin and the corresponding execution of glEnd
54 case GL_INVALID_OPERATION: sErr = "Invalid Operation"; break;
55 case GL_STACK_OVERFLOW: sErr = "Stack Overflow"; break;
56 case GL_STACK_UNDERFLOW: sErr = "Stack Underflow"; break;
57 case GL_OUT_OF_MEMORY: sErr = "Out Of Memory"; break;
58 default: sErr = "Unknown"; break;
59 }
60 BOOST_LOG_TRIVIAL(error) << "OpenGL error in " << file_name << ":" << line << ", function " << function_name << "() : " << (int)err << " - " << sErr;
61 assert(false);
62}
unsigned int GLenum
Definition glu-libtess.h:53
unsigned get_logging_level()
Definition utils.cpp:107
static char error[256]
Definition tga.cpp:50

References error, and Slic3r::get_logging_level().

Referenced by glAssertRecentCall().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: