GLVis  v4.2
Accurate and flexible finite element visualization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Classes | Public Types | Public Member Functions | List of all members
gl3::CoreGLDevice Class Reference

#include <renderer_core.hpp>

Inheritance diagram for gl3::CoreGLDevice:
[legend]
Collaboration diagram for gl3::CoreGLDevice:
[legend]

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
 

Detailed Description

Definition at line 20 of file renderer_core.hpp.

Member Enumeration Documentation

Enumerator
ATTR_VERTEX 
ATTR_TEXT_VERTEX 
ATTR_NORMAL 
ATTR_COLOR 
ATTR_TEXCOORD0 
NUM_ATTRS 

Definition at line 23 of file renderer_core.hpp.

Constructor & Destructor Documentation

gl3::CoreGLDevice::CoreGLDevice ( )
inline

Definition at line 76 of file renderer_core.hpp.

Member Function Documentation

void gl3::CoreGLDevice::bindExternalProgram ( const ShaderProgram prog)
inline

Definition at line 111 of file renderer_core.hpp.

void gl3::CoreGLDevice::bufferToDevice ( array_layout  layout,
IVertexBuffer buf 
)
overridevirtual

Implements gl3::GLDevice.

Definition at line 247 of file renderer_core.cpp.

void gl3::CoreGLDevice::bufferToDevice ( array_layout  layout,
IIndexedBuffer buf 
)
overridevirtual

Implements gl3::GLDevice.

Definition at line 267 of file renderer_core.cpp.

void gl3::CoreGLDevice::bufferToDevice ( TextBuffer t_buf)
overridevirtual

Implements gl3::GLDevice.

Definition at line 293 of file renderer_core.cpp.

void gl3::CoreGLDevice::captureXfbBuffer ( PaletteState pal,
CaptureBuffer cbuf,
int  hnd 
)
overridevirtual

Implements gl3::GLDevice.

Definition at line 595 of file renderer_core.cpp.

void gl3::CoreGLDevice::drawDeviceBuffer ( int  hnd)
overridevirtual

Implements gl3::GLDevice.

Definition at line 363 of file renderer_core.cpp.

void gl3::CoreGLDevice::drawDeviceBuffer ( const TextBuffer t_buf)
overridevirtual

Implements gl3::GLDevice.

Definition at line 405 of file renderer_core.cpp.

void gl3::CoreGLDevice::exitXfbMode ( )
inlineoverridevirtual

Reimplemented from gl3::GLDevice.

Definition at line 105 of file renderer_core.hpp.

DeviceType gl3::CoreGLDevice::getType ( )
inlineoverridevirtual

Implements gl3::GLDevice.

Definition at line 82 of file renderer_core.hpp.

void gl3::CoreGLDevice::init ( )
overridevirtual

Reimplemented from gl3::GLDevice.

Definition at line 165 of file renderer_core.cpp.

void gl3::CoreGLDevice::initXfbMode ( )
inlineoverridevirtual

Reimplemented from gl3::GLDevice.

Definition at line 99 of file renderer_core.hpp.

void gl3::CoreGLDevice::setAmbientLight ( const std::array< float, 4 > &  amb)
overridevirtual

Implements gl3::GLDevice.

Definition at line 229 of file renderer_core.cpp.

void gl3::CoreGLDevice::setClipPlaneEqn ( const std::array< double, 4 > &  eqn)
overridevirtual

Implements gl3::GLDevice.

Definition at line 240 of file renderer_core.cpp.

void gl3::CoreGLDevice::setClipPlaneUse ( bool  enable)
overridevirtual

Implements gl3::GLDevice.

Definition at line 234 of file renderer_core.cpp.

void gl3::CoreGLDevice::setMaterial ( Material  mat)
overridevirtual

Implements gl3::GLDevice.

Definition at line 211 of file renderer_core.cpp.

void gl3::CoreGLDevice::setNumLights ( int  i)
overridevirtual

Implements gl3::GLDevice.

Definition at line 202 of file renderer_core.cpp.

void gl3::CoreGLDevice::setPointLight ( int  i,
Light  lt 
)
overridevirtual

Implements gl3::GLDevice.

Definition at line 217 of file renderer_core.cpp.

void gl3::CoreGLDevice::setTransformMatrices ( glm::mat4  model_view,
glm::mat4  projection 
)
overridevirtual

Reimplemented from gl3::GLDevice.

Definition at line 186 of file renderer_core.cpp.


The documentation for this class was generated from the following files: