QuadVertexArray
in package
Table of Contents
Properties
- $state : GLState
- $vertexArray : int
- The vertex array object from GL
- $vertexBuffer : int
- The vertex buffer object from GL
Methods
- __construct() : void
- Constructor
- __destruct() : void
- Destructor
- bind() : void
- Binds the vertex array
- draw() : void
- Draws the quad
Properties
$state
private
GLState
$state
$vertexArray
The vertex array object from GL
private
int
$vertexArray
$vertexBuffer
The vertex buffer object from GL
private
int
$vertexBuffer
Methods
__construct()
Constructor
public
__construct(GLState $state) : void
Parameters
- $state : GLState
__destruct()
Destructor
public
__destruct() : void
bind()
Binds the vertex array
public
bind() : void
draw()
Draws the quad
public
draw() : void