mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 18:46:29 +03:00
34 lines
662 B
C++
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
|
|
|