LPVertexBuffer
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
- bind() : void
- Binds the vertex array
- uploadData() : void
- Uploads the given data to the GPU
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
bind()
Binds the vertex array
public
bind() : void
uploadData()
Uploads the given data to the GPU
public
uploadData(FloatBuffer $buffer) : void
Parameters
- $buffer : FloatBuffer