add buttonDrawObject and calls to successfully draw button
This commit is contained in:
@@ -58,8 +58,8 @@ void deleteShader(unsigned int shader) {
|
||||
glDeleteShader(shader);
|
||||
}
|
||||
|
||||
void vertexAttribPointer(int location, int numVecComponents) {
|
||||
glVertexAttribPointer(location, numVecComponents, GL_FLOAT, GL_FALSE, numVecComponents * sizeof(float), (void*) 0);
|
||||
void vertexAttribPointer(int location, int numVecComponents, int stride, int offset) {
|
||||
glVertexAttribPointer(location, numVecComponents, GL_FLOAT, GL_FALSE, stride * sizeof(float), (void*)offset);
|
||||
}
|
||||
|
||||
void enableVertexAttribArray(int location) {
|
||||
|
||||
@@ -36,7 +36,7 @@ struct
|
||||
val shaderSource = _import "shaderSource" public : shader * string -> unit;
|
||||
|
||||
val vertexAttribPointer =
|
||||
_import "vertexAttribPointer" public : int * int -> unit;
|
||||
_import "vertexAttribPointer" public : int * int * int * int -> unit;
|
||||
val enableVertexAttribArray =
|
||||
_import "enableVertexAttribArray" public : int -> unit;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user