25 #ifndef __Primitives_hh__
26 #define __Primitives_hh__
28 #include <OpenGLFramework/Base/glfBatch.hh>
29 #include <OpenGLFramework/Base/glfVertexBuffer.hh>
30 #include <OpenGLFramework/Base/glfElementBuffer.hh>
31 #include <Geometry/ProjectionParametersPerspective.hh>
32 #include <bias_config.h>
34 #include <OpenGLFramework/Base/glfVertexArrayObject.hh>
84 static void AddPlain2DQuadVertices(
float* supplementedArray,
85 unsigned int offset,
unsigned int stride);
101 static void AddPlain2DTextureCoordinates(
float* supplementedArray,
102 unsigned int offset,
unsigned int stride,
bool flip=
false);
108 const std::vector<unsigned int>& posX,
109 const std::vector<unsigned int>& posY,
110 const unsigned int hw,
118 const unsigned int posY,
119 const unsigned int hw,
134 bool normalizeZ=
false);
138 bool normalizeZ,
bool invertS);
140 #ifdef GL_VERSION_3_0
176 GLint VertexCoordSlot=0, GLint TexCoordSlot=1,
bool normalizeZ=
false);
182 static void AddRelativeQuadPatches(
const unsigned int referenceWidth,
183 const unsigned int referenceHeight,
184 const std::vector<unsigned int>& posX,
185 const std::vector<unsigned int>& posY,
186 const unsigned int hw,
192 static void AddRelativeQuadPatchOverImageLine(
const unsigned int referenceWidth,
193 const unsigned int referenceHeight,
194 const unsigned int linePos,
195 const unsigned int hw,
203 static void AddRelativeQuadPatch_(
const float scaleToSpace[2],
204 const float shiftToSpace[2],
205 const float scaleToTex[2],
206 const float shiftToTex[2],
207 const float scaleToTexFlipped[2],
208 const float shiftToTexFlipped[2],
211 float* supplementedArray,
212 unsigned int& offset,
An element buffer contains vertex indices that form primitives.
Helper class for creating primitives.
camera parameters which define the mapping between rays in the camera coordinate system and pixels in...
A vertex buffer contains an array of vertices that can be used for rendering.
Camera parameters which define the mapping between rays in the camera coordinate system and pixels in...