The QuadGL class.
More...
#include <display.hpp>
|
| QuadGL () |
|
| QuadGL (bool bTextureCoordinates, float halfSizeX=1.0f, float halfSizeY=1.0f) |
|
| ~QuadGL () |
|
void | init (bool bTexCoordinates, float halfSizeX=1.0f, float halfSizeY=1.0f) |
| init initializates the QuadGL by allocating memory on the GPU. More...
|
|
void | Render () |
| Render draws a quad on screen. More...
|
|
void | Render (TechniqueGL &technique, GLuint texture) |
| Render. More...
|
|
◆ QuadGL() [1/2]
pic::pic::QuadGL::QuadGL |
( |
| ) |
|
|
inline |
◆ QuadGL() [2/2]
pic::pic::QuadGL::QuadGL |
( |
bool |
bTextureCoordinates, |
|
|
float |
halfSizeX = 1.0f , |
|
|
float |
halfSizeY = 1.0f |
|
) |
| |
|
inline |
◆ ~QuadGL()
pic::pic::QuadGL::~QuadGL |
( |
| ) |
|
|
inline |
◆ createPosCoord()
static float* pic::pic::QuadGL::createPosCoord |
( |
float |
halfSizeX = 1.0f , |
|
|
float |
halfSizeY = 1.0f |
|
) |
| |
|
inlinestatic |
createPosCoord allocates memory for a position buffer.
- Returns
◆ createTexCoord()
static float* pic::pic::QuadGL::createTexCoord |
( |
| ) |
|
|
inlinestatic |
createTexCoord allocates memory for a texture coordinates buffer.
- Returns
◆ getFragmentProgram()
static std::string pic::pic::QuadGL::getFragmentProgram |
( |
| ) |
|
|
inlinestatic |
getFragmentProgram
- Returns
◆ getFragmentProgramForView()
static std::string pic::pic::QuadGL::getFragmentProgramForView |
( |
| ) |
|
|
inlinestatic |
getFragmentProgramForView
- Returns
◆ getTechnique()
static void pic::pic::QuadGL::getTechnique |
( |
TechniqueGL & |
technique, |
|
|
std::string |
vp_src = "" , |
|
|
std::string |
fp_src = "" , |
|
|
bool |
bTextureCoordinates = false |
|
) |
| |
|
inlinestatic |
getProgram creates a simple program.
- Parameters
-
◆ getVertexProgramV2()
static std::string pic::pic::QuadGL::getVertexProgramV2 |
( |
| ) |
|
|
inlinestatic |
getVertexProgramV2 creates a simple vertex program.
- Returns
◆ getVertexProgramV3()
static std::string pic::pic::QuadGL::getVertexProgramV3 |
( |
| ) |
|
|
inlinestatic |
getVertexProgramV3 creates a simple vertex program.
- Returns
◆ getVertexProgramWithTexCoordinates()
static std::string pic::pic::QuadGL::getVertexProgramWithTexCoordinates |
( |
| ) |
|
|
inlinestatic |
getVertexProgramWithTexCoordinates creates a simple vertex program with texture coordinates as input.
- Returns
◆ init()
void pic::pic::QuadGL::init |
( |
bool |
bTexCoordinates, |
|
|
float |
halfSizeX = 1.0f , |
|
|
float |
halfSizeY = 1.0f |
|
) |
| |
|
inline |
init initializates the QuadGL by allocating memory on the GPU.
- Parameters
-
◆ Render() [1/2]
void pic::pic::QuadGL::Render |
( |
| ) |
|
|
inline |
Render draws a quad on screen.
◆ Render() [2/2]
void pic::pic::QuadGL::Render |
( |
TechniqueGL & |
technique, |
|
|
GLuint |
texture |
|
) |
| |
|
inline |
◆ vao
GLuint pic::pic::QuadGL::vao |
|
protected |
◆ vbo
GLuint pic::pic::QuadGL::vbo[2] |
|
protected |
The documentation for this class was generated from the following file:
- C:/Users/Francesco/Documents/GitHub/piccante/include/util/gl/display.hpp