Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::RenderStateSet Class Reference

A set of RenderState objects managed by a Shader. More...

#include <RenderStateSet.hpp>

Inheritance diagram for vl::RenderStateSet:
vl::Object

List of all members.

Public Member Functions

 RenderStateSet ()
RenderStateSetdeepCopyFrom (const RenderStateSet &other)
RenderStateSetshallowCopyFrom (const RenderStateSet &other)
void setRenderState (RenderState *renderstate, int index)
RenderStaterenderState (ERenderState type, int index=-1)
const RenderStaterenderState (ERenderState type, int index=-1) const
size_t renderStatesCount () const
const RenderStateSlotrenderStates () const
RenderStateSlotrenderStates ()
void eraseRenderState (ERenderState type, int index)
 If index == -1 all the renderstates of the given type are removed regardless of their binding index.
void eraseAllRenderStates ()
const GLSLProgramglslProgram () const
 Returns the GLSLProgram associated to a RenderStateSet (if any)
GLSLProgramglslProgram ()
 Returns the GLSLProgram associated to a RenderStateSet (if any)

Protected Attributes

std::vector< RenderStateSlotmRenderStates
GLSLProgrammGLSLProgram

Detailed Description

A set of RenderState objects managed by a Shader.

See also:
Shader, Effect, Actor

Definition at line 48 of file RenderStateSet.hpp.


Constructor & Destructor Documentation

vl::RenderStateSet::RenderStateSet (  ) [inline]

Definition at line 53 of file RenderStateSet.hpp.

References VL_DEBUG_SET_OBJECT_NAME.


Member Function Documentation

RenderStateSet & RenderStateSet::deepCopyFrom ( const RenderStateSet other )

Definition at line 39 of file RenderStateSet.cpp.

References mRenderStates.

Referenced by vl::Shader::deepCopyFrom().

RenderStateSet& vl::RenderStateSet::shallowCopyFrom ( const RenderStateSet other ) [inline]

Definition at line 60 of file RenderStateSet.hpp.

References mGLSLProgram, and mRenderStates.

Referenced by vl::Shader::shallowCopyFrom().

void RenderStateSet::setRenderState ( RenderState renderstate,
int  index 
)
RenderState * RenderStateSet::renderState ( ERenderState  type,
int  index = -1 
)
const RenderState * RenderStateSet::renderState ( ERenderState  type,
int  index = -1 
) const

Definition at line 74 of file RenderStateSet.cpp.

References mRenderStates, and NULL.

size_t vl::RenderStateSet::renderStatesCount (  ) const [inline]
const RenderStateSlot* vl::RenderStateSet::renderStates (  ) const [inline]
RenderStateSlot* vl::RenderStateSet::renderStates (  ) [inline]

Definition at line 74 of file RenderStateSet.hpp.

References NULL.

void RenderStateSet::eraseRenderState ( ERenderState  type,
int  index 
)

If index == -1 all the renderstates of the given type are removed regardless of their binding index.

Definition at line 82 of file RenderStateSet.cpp.

References mGLSLProgram, mRenderStates, NULL, and vl::RS_GLSLProgram.

void vl::RenderStateSet::eraseAllRenderStates (  ) [inline]

Definition at line 79 of file RenderStateSet.hpp.

References NULL.

const GLSLProgram* vl::RenderStateSet::glslProgram (  ) const [inline]

Returns the GLSLProgram associated to a RenderStateSet (if any)

Definition at line 82 of file RenderStateSet.hpp.

Referenced by vl::Renderer::render().

GLSLProgram* vl::RenderStateSet::glslProgram (  ) [inline]

Returns the GLSLProgram associated to a RenderStateSet (if any)

Definition at line 85 of file RenderStateSet.hpp.


Member Data Documentation

Definition at line 89 of file RenderStateSet.hpp.

Referenced by eraseRenderState(), setRenderState(), and shallowCopyFrom().


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:11.
Permission is granted to use this page to write and publish articles regarding Visualization Library.