GLVis
v4.2
Accurate and flexible finite element visualization
|
#include <renderer_core.hpp>
Classes | |
struct | ShaderXfbVertex |
Public Types | |
enum | ShaderAttrib { ATTR_VERTEX = 0, ATTR_TEXT_VERTEX, ATTR_NORMAL, ATTR_COLOR, ATTR_TEXCOORD0, NUM_ATTRS } |
Public Types inherited from gl3::GLDevice | |
enum | DeviceType { NO_DEVICE, FF_DEVICE, CORE_DEVICE } |
Public Member Functions | |
CoreGLDevice () | |
DeviceType | getType () override |
void | init () override |
void | setTransformMatrices (glm::mat4 model_view, glm::mat4 projection) override |
void | setNumLights (int i) override |
void | setMaterial (Material mat) override |
void | setPointLight (int i, Light lt) override |
void | setAmbientLight (const std::array< float, 4 > &amb) override |
void | setClipPlaneUse (bool enable) override |
void | setClipPlaneEqn (const std::array< double, 4 > &eqn) override |
void | bufferToDevice (array_layout layout, IVertexBuffer &buf) override |
void | bufferToDevice (array_layout layout, IIndexedBuffer &buf) override |
void | bufferToDevice (TextBuffer &t_buf) override |
void | drawDeviceBuffer (int hnd) override |
void | drawDeviceBuffer (const TextBuffer &t_buf) override |
void | initXfbMode () override |
void | exitXfbMode () override |
void | bindExternalProgram (const ShaderProgram &prog) |
void | captureXfbBuffer (PaletteState &pal, CaptureBuffer &cbuf, int hnd) override |
Public Member Functions inherited from gl3::GLDevice | |
virtual | ~GLDevice ()=default |
void | detachTexture (int tex_unit) |
void | attachTexture (int tex_unit, int tex_id) |
void | enableBlend () |
void | disableBlend () |
void | enableDepthWrite () |
void | disableDepthWrite () |
void | setLineWidth (float w) |
void | setViewport (GLsizei w, GLsizei h) |
void | getViewport (GLint(&vp)[4]) |
void | setStaticColor (const std::array< float, 4 > &rgba) |
void | captureXfbBuffer (CaptureBuffer &capture, const TextBuffer &t_buf) |
Additional Inherited Members | |
Static Public Member Functions inherited from gl3::GLDevice | |
static bool | useLegacyTextureFmts () |
Static Public Attributes inherited from gl3::GLDevice | |
static const int | SAMPLER_COLOR = 0 |
static const int | SAMPLER_ALPHA = 1 |
Protected Attributes inherited from gl3::GLDevice | |
int | vp_width |
int | vp_height |
glm::mat4 | model_view_mtx |
glm::mat4 | proj_mtx |
std::array< float, 4 > | static_color |
TextureHandle | passthrough_texture |
Definition at line 20 of file renderer_core.hpp.
Enumerator | |
---|---|
ATTR_VERTEX | |
ATTR_TEXT_VERTEX | |
ATTR_NORMAL | |
ATTR_COLOR | |
ATTR_TEXCOORD0 | |
NUM_ATTRS |
Definition at line 23 of file renderer_core.hpp.
|
inline |
Definition at line 76 of file renderer_core.hpp.
|
inline |
Definition at line 111 of file renderer_core.hpp.
|
overridevirtual |
Implements gl3::GLDevice.
Definition at line 247 of file renderer_core.cpp.
|
overridevirtual |
Implements gl3::GLDevice.
Definition at line 267 of file renderer_core.cpp.
|
overridevirtual |
Implements gl3::GLDevice.
Definition at line 293 of file renderer_core.cpp.
|
overridevirtual |
Implements gl3::GLDevice.
Definition at line 595 of file renderer_core.cpp.
|
overridevirtual |
Implements gl3::GLDevice.
Definition at line 363 of file renderer_core.cpp.
|
overridevirtual |
Implements gl3::GLDevice.
Definition at line 405 of file renderer_core.cpp.
|
inlineoverridevirtual |
Reimplemented from gl3::GLDevice.
Definition at line 105 of file renderer_core.hpp.
|
inlineoverridevirtual |
Implements gl3::GLDevice.
Definition at line 82 of file renderer_core.hpp.
|
overridevirtual |
Reimplemented from gl3::GLDevice.
Definition at line 165 of file renderer_core.cpp.
|
inlineoverridevirtual |
Reimplemented from gl3::GLDevice.
Definition at line 99 of file renderer_core.hpp.
|
overridevirtual |
Implements gl3::GLDevice.
Definition at line 229 of file renderer_core.cpp.
|
overridevirtual |
Implements gl3::GLDevice.
Definition at line 240 of file renderer_core.cpp.
|
overridevirtual |
Implements gl3::GLDevice.
Definition at line 234 of file renderer_core.cpp.
|
overridevirtual |
Implements gl3::GLDevice.
Definition at line 211 of file renderer_core.cpp.
|
overridevirtual |
Implements gl3::GLDevice.
Definition at line 202 of file renderer_core.cpp.
|
overridevirtual |
Implements gl3::GLDevice.
Definition at line 217 of file renderer_core.cpp.
|
overridevirtual |
Reimplemented from gl3::GLDevice.
Definition at line 186 of file renderer_core.cpp.