VISU - PHP Game Framework

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

$vertexArray

The vertex array object from GL

private int $vertexArray

$vertexBuffer

The vertex buffer object from GL

private int $vertexBuffer

Methods

uploadData()

Uploads the given data to the GPU

public uploadData(FloatBuffer $buffer) : void
Parameters
$buffer : FloatBuffer

        
On this page

Search results