13 #ifndef OGLPLUS_SHAPES_SKY_CUBE_1206011111_HPP
14 #define OGLPLUS_SHAPES_SKY_CUBE_1206011111_HPP
27 :
public DrawingInstructionWriter
38 typedef GLuint (
SkyBox::*VertexAttribFunc)(std::vector<GLfloat>&)
const;
44 const T _positions[8*3] = {
54 dest.assign(_positions, _positions+8*3);
58 #if OGLPLUS_DOCUMENTATION_ONLY
66 typedef VertexAttribsInfo<
87 const GLushort _indices[6*5] = {
102 operation.
method = DrawOperation::Method::DrawElements;
105 operation.
count = 6*5;
109 return this->MakeInstructions(operation);
116 #endif // include guard
Implementation of shape draw instructions.
void BoundingSphere(oglplus::Sphere< T > &bounding_sphere) const
Queries the bounding sphere coordinates and dimensions.
Definition: sky_box.hpp:76
FaceOrientation FaceWinding(void) const
Returns the winding direction of faces.
Definition: sky_box.hpp:33
GLuint Positions(std::vector< T > &dest) const
Makes the vertices and returns the number of values per vertex.
Definition: sky_box.hpp:42
DrawingInstructions Instructions(Default=Default()) const
Returns the instructions for rendering of faces.
Definition: sky_box.hpp:99
GLuint first
The first element.
Definition: draw.hpp:111
VertexAttribsInfo< SkyBox > VertexAttribs
Vertex attribute information for this shape builder.
Definition: sky_box.hpp:64
FaceOrientation
Face orientation enumeration.
Definition: face_mode.hpp:62
OpenGL face type-related enumeration.
PrimitiveType mode
The primitive type to be used to draw.
Definition: draw.hpp:108
std::vector< GLushort > IndexArray
The type of the index container returned by Indices()
Definition: sky_box.hpp:82
GLuint restart_index
Primitive restart index.
Definition: draw.hpp:126
Structure containing information about how to draw a part of a shape.
Definition: draw.hpp:100
IndexArray Indices(Default=Default()) const
Returns element indices that are used with the drawing instructions.
Definition: sky_box.hpp:85
GLuint count
Count of elements.
Definition: draw.hpp:114
Method method
The method to be used to draw.
Definition: draw.hpp:106
Classes providing additional information about the shape builders.
Class providing vertex attributes and instructions for drawing of a sky box.
Definition: sky_box.hpp:26
GLuint phase
The phase of the drawing process.
Definition: draw.hpp:135
Class encapsulating the instructions for drawing of a shape.
Definition: draw.hpp:219
Class implementing sphere-related functionality.
Definition: sphere.hpp:29