2 #ifndef GLSDK_MESH_CPU_DATA_WRITER_H
3 #define GLSDK_MESH_CPU_DATA_WRITER_H
24 virtual const char *what()
const throw() {
return message.c_str();}
36 message =
"All vertices must be complete before attempting to extract them from CpuDataWriter.";
91 void Extract(std::vector<char> &output);
98 std::vector<char>
Copy()
const;
118 GLuint
TransferToBuffer(GLenum target, GLenum usage, GLuint bufferObject = 0)
const;
127 std::vector<char> m_tempBuffer;
128 std::vector<char> m_data;
130 size_t m_numVerticesWritten;
132 void *GetPtrForAttrib(
size_t currAttrib);
135 const VertexFormat &GetVertexFormat()
const {
return m_fmt;}
136 void WriteAttribute(
const void *pData,
size_t bytesPerComponent,
size_t currAttrib );
142 #endif //GLSDK_MESH_CPU_DATA_WRITER_H