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

#include <renderer_ff.hpp>

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

Public Member Functions

 FFGLDevice ()
 
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 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)
 
virtual void initXfbMode ()
 
virtual void exitXfbMode ()
 
void captureXfbBuffer (CaptureBuffer &capture, const TextBuffer &t_buf)
 

Additional Inherited Members

- Public Types inherited from gl3::GLDevice
enum  DeviceType { NO_DEVICE, FF_DEVICE, CORE_DEVICE }
 
- 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 22 of file renderer_ff.hpp.

Constructor & Destructor Documentation

gl3::FFGLDevice::FFGLDevice ( )
inline

Definition at line 39 of file renderer_ff.hpp.

Member Function Documentation

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

Implements gl3::GLDevice.

Definition at line 160 of file renderer_ff.cpp.

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

Implements gl3::GLDevice.

Definition at line 199 of file renderer_ff.cpp.

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

Implements gl3::GLDevice.

Definition at line 239 of file renderer_ff.cpp.

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

Implements gl3::GLDevice.

Definition at line 329 of file renderer_ff.cpp.

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

Implements gl3::GLDevice.

Definition at line 244 of file renderer_ff.cpp.

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

Implements gl3::GLDevice.

Definition at line 269 of file renderer_ff.cpp.

DeviceType gl3::FFGLDevice::getType ( )
inlineoverridevirtual

Implements gl3::GLDevice.

Definition at line 44 of file renderer_ff.hpp.

void gl3::FFGLDevice::init ( )
overridevirtual

Reimplemented from gl3::GLDevice.

Definition at line 66 of file renderer_ff.cpp.

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

Implements gl3::GLDevice.

Definition at line 144 of file renderer_ff.cpp.

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

Implements gl3::GLDevice.

Definition at line 155 of file renderer_ff.cpp.

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

Implements gl3::GLDevice.

Definition at line 149 of file renderer_ff.cpp.

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

Implements gl3::GLDevice.

Definition at line 118 of file renderer_ff.cpp.

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

Implements gl3::GLDevice.

Definition at line 100 of file renderer_ff.cpp.

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

Implements gl3::GLDevice.

Definition at line 129 of file renderer_ff.cpp.

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

Reimplemented from gl3::GLDevice.

Definition at line 90 of file renderer_ff.cpp.


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