Vykreslovač objektů. ...
#include <Renderer.h>
Veřejné metody | |
CRenderer () | |
CRenderer (int viewportWidth, int viewportHeight) | |
~CRenderer () | |
void | setViewport (int width, int height) |
void | setViewportWidth (int width) |
void | setViewportHeight (int height) |
void | setBackgroundColor (Color4f color) |
void | setBackgroundColor (float red, float green, float blue, float alpha) |
int | getViewportWidth () const |
int | getViewportHeight () const |
void | setCamera (CCamera *camera) |
CCamera * | getCamera () const |
void | setObject3DManager (CGameObject3DManager *object3DManager) |
void | setObject2DManager (CGameObject2DManager *object2DManager) |
void | render (void) |
void | blendingEnable () |
void | blendingEnable (GLenum sfactor, GLenum dfactor) |
void | blendingDisable () |
void | setBlendingParams (GLenum sfactor, GLenum dfactor) |
void | disconnect () |
Vykreslovač objektů.
Kontakt: tomanfra@fit.cvut.cz
CRenderer::CRenderer | ( | void | ) |
Konstruktor
CRenderer::CRenderer | ( | int | viewportWidth, | |
int | viewportHeight | |||
) |
Konstruktor s parametry
viewportWidth | ||
viewportHeight |
CRenderer::~CRenderer | ( | void | ) |
Destruktor
void CRenderer::blendingDisable | ( | ) |
Vypne blending
void CRenderer::blendingEnable | ( | GLenum | sfactor, | |
GLenum | dfactor | |||
) |
Zapne blending s parametry
sfactor | ||
dfactor |
void CRenderer::blendingEnable | ( | ) |
Zapne blending s defaultním nastavením
void CRenderer::render | ( | void | ) |
Vykreslí objekty
void CRenderer::setBlendingParams | ( | GLenum | sfactor, | |
GLenum | dfactor | |||
) |
Nastaví parametry blendingu
sfactor | ||
dfactor |