LPObjLoader
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- loadAllInDirectory() : void
- Loads all object files in a given directory and returns them in assoc array
- loadFile() : LPModel
- Loads a single object file and returns it
Properties
$gl
private
GLState
$gl
Methods
__construct()
public
__construct(GLState $gl) : mixed
Parameters
- $gl : GLState
loadAllInDirectory()
Loads all object files in a given directory and returns them in assoc array
public
loadAllInDirectory(string $directory, LPModelCollection $collection[, float $scaleModifier = 1.0 ]) : void
Parameters
- $directory : string
-
The directory to load the files from
- $collection : LPModelCollection
-
The collection to store the models in
- $scaleModifier : float = 1.0
-
The scale modifier to apply to the models while loading
loadFile()
Loads a single object file and returns it
private
loadFile(string $path, FloatBuffer $buffer, LPVertexBuffer $vb, int &$vertexOffset[, float $scaleModifier = 1.0 ]) : LPModel
Parameters
- $path : string
- $buffer : FloatBuffer
- $vb : LPVertexBuffer
- $vertexOffset : int
- $scaleModifier : float = 1.0