Files
eepp/src/graphics/cvertexbufferogl.hpp
spartanj 7937c4c4d4 Preparing SDL encapsulation.
Modified some things on the GL3 renderer.
2011-02-07 04:03:27 -03:00

34 lines
662 B
C++

#ifndef EE_GRAPHICSCVERTEXBUFFEROGL_HPP
#define EE_GRAPHICSCVERTEXBUFFEROGL_HPP
#include "cvertexbuffer.hpp"
namespace EE { namespace Graphics {
class cVertexBufferOGL : public cVertexBuffer {
public:
cVertexBufferOGL( const Uint32& VertexFlags = VERTEX_FLAGS_DEFAULT, EE_DRAW_MODE DrawType = DM_QUADS, const Int32& ReserveVertexSize = 0, const Int32& ReserveIndexSize = 0, EE_VBO_USAGE_TYPE UsageType = VBO_USAGE_TYPE_STATIC );
virtual ~cVertexBufferOGL();
void Bind();
void Draw();
bool Compile();
void Update( const Uint32& Types, bool Indices );
void Reload();
void Unbind();
protected:
void SetVertexStates();
};
}}
#endif