* fixed compiling & added stuff
This commit is contained in:
parent
d24d5357b8
commit
c482a3f779
6 changed files with 381 additions and 11 deletions
|
|
@ -3,6 +3,8 @@
|
|||
#include <epoxy/gl.h>
|
||||
#include <epoxy/glx.h>
|
||||
|
||||
namespace endofthejedi {
|
||||
|
||||
template <GLenum T> class BufferObject {
|
||||
private:
|
||||
GLuint m_name;
|
||||
|
|
@ -24,12 +26,21 @@ typedef BufferObject<GL_ELEMENT_ARRAY_BUFFER> IBO;
|
|||
|
||||
class VAO {
|
||||
private:
|
||||
int[3] foo;
|
||||
|
||||
GLuint m_name;
|
||||
protected:
|
||||
public:
|
||||
VAO();
|
||||
~VAO();
|
||||
bind();
|
||||
fill(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride = 0, const GLvoid* pointer = NULL);
|
||||
void bind();
|
||||
void fill(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride = 0, const GLvoid* pointer = NULL);
|
||||
};
|
||||
|
||||
class Shader {
|
||||
private:
|
||||
protected:
|
||||
public:
|
||||
Shader();
|
||||
~Shader();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ struct Vec2d
|
|||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
struct Mat4d {
|
||||
std::array<double, 16> data;
|
||||
|
||||
|
|
@ -86,4 +86,5 @@ struct Mat4d {
|
|||
result[15] = result[12]*rhs[3] + result[13]*result[8] + result[14]*result[12] + result[15]*result[16];
|
||||
return result;
|
||||
}
|
||||
}
|
||||
};
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue