DubiousEngine
0.2.0
Simple Game Engine
|
An object that can read an AC3D file. More...
#include <Ac3d_file_reader.h>
Public Member Functions | |
Ac3d_file_reader ()=delete | |
~Ac3d_file_reader ()=delete | |
Ac3d_file_reader (const Ac3d_file_reader &)=delete | |
Ac3d_file_reader & | operator= (const Ac3d_file_reader &)=delete |
Static Public Member Functions | |
static std::unique_ptr< const Ac3d_file > | read_file (const File_path &file_name) |
Read the specified file and return an AC3DFilePtr. More... | |
static std::unique_ptr< const Ac3d_file > | test_cube (float width, float height, float depth) |
Create a test cube. More... | |
static std::unique_ptr< const Ac3d_file > | test_cube_group (float edge_length) |
Create a test model that has 3 cubes in a group. More... | |
An object that can read an AC3D file.
This class can be used to read AC3D files into an AC3DFile object. Note that it is not a robust solution. It does not support all features, and it only supports specifically created models. One important limitation is that a model must be composed only of triangles. Also, you must choose the Re-Center option for your model so that all children will be centered around their middle. This class can not be created, it can only be used to read a file.
|
delete |
|
delete |
|
delete |
|
delete |
|
static |
Read the specified file and return an AC3DFilePtr.
file_name | - [in] path and file name of the AC3D file |
|
static |
Create a test cube.
width | - [in] edge width |
height | - [in] edge height |
depth | - [in] edge depth |
|
static |
Create a test model that has 3 cubes in a group.
edge_length | - [in] edge length |