Typedefs | |
typedef unsigned int | size_type |
A type that counts various numeric parameters. | |
typedef int | obj_handle |
A type that represents object handle. | |
Enumerations | |
enum | e_index_type { INDEX_U16, INDEX_U32 } |
Selects index type. More... | |
Functions | |
FAOGEN_API bool __stdcall | initialize () |
FAOGEN_API void __stdcall | shutdown () |
FAOGEN_API obj_handle __stdcall | create_object_v (float const *vertices3f, size_type vertices_stride, size_type num_vertices, e_index_type index_type, void const *triangle_indices, size_type num_indices) |
FAOGEN_API obj_handle __stdcall | create_object_vn (float const *vertices3f, size_type vertices_stride, float const *normals3f, size_type normals_stride, size_type num_vertices, e_index_type index_type, void const *triangle_indices, size_type num_indices) |
FAOGEN_API obj_handle __stdcall | create_object_vnt (float const *vertices3f, size_type vertices_stride, float const *normals3f, size_type normals_stride, float const *texcoords2f, size_type texcoords_stride, size_type num_vertices, e_index_type index_type, void const *triangle_indices, size_type num_indices) |
FAOGEN_API obj_handle __stdcall | create_object_vnta (float const *vertices3f, size_type vertices_stride, float const *normals3f, size_type normals_stride, float const *texcoords2f, size_type texcoords_stride, float const *atest_texcoords2f, size_type atest_texcoords_stride, size_type num_vertices, e_index_type index_type, void const *triangle_indices, size_type num_indices) |
FAOGEN_API void __stdcall | set_object_alphamap (obj_handle object_id, size_type width, size_type height, size_type num_channels, unsigned char const *pixels) |
FAOGEN_API void __stdcall | set_object_matrix (obj_handle object_id, float const *matrix) |
FAOGEN_API bool __stdcall | start_ao_gen_vert (obj_handle object_id, size_type depth_size, float zoffset, float overbright, size_type quality, bool cosine_mode, int hemisphere_mode, bool bent_n) |
FAOGEN_API bool __stdcall | start_ao_gen_tex (obj_handle object_id, size_type depth_size, float zoffset, float overbright, size_type quality, bool cosine_mode, size_type width, size_type height, int hemisphere_mode, bool bent_n) |
size_type | num_iterations (size_type quality) |
FAOGEN_API void __stdcall | ao_vert_generate (size_type iterations) |
FAOGEN_API void __stdcall | ao_tex_generate (size_type iterations) |
FAOGEN_API bool __stdcall | results_ready () |
FAOGEN_API float const *__stdcall | get_vert_results () |
FAOGEN_API float const *__stdcall | get_tex_results (size_type edge_padding) |
FAOGEN_API void __stdcall | destroy_object (obj_handle object_id) |
|
A type that represents object handle.
Definition at line 16 of file faogenlib.h. |
|
A type that counts various numeric parameters.
Definition at line 13 of file faogenlib.h. |
|
Selects index type.
Definition at line 27 of file faogenlib.h. |
|
Perform texture ao generation.
Referenced by generate_example(). |
|
Perform per-vertex ao generation.
Referenced by generate_example(). |
|
Create object. For objects, created with this function ambient occlusion data can't be generated, they will serve only as occludders for other objects.
Referenced by generate_example(). |
|
Create object. For objects, created with this function only per-vertex ambient occlusion data can be generated.
Referenced by generate_example(). |
|
Create object. For objects, created with this function both per-vertex and texture ambient occlusion can be generated.
Referenced by generate_example(). |
|
Create object with alpha-tested transparency. For objects, created with this function both per-vertex and texture ambient occlusion can be generated.
|
|
Destroy object from scene.
|
|
Retrieve generated texture ao data.
Referenced by generate_example(). |
|
Retrieve generated per-vertex ao data.
Referenced by generate_example(). |
|
Initialize faogenlib.
Referenced by generate_example(). |
|
Helper function to calculate actual number of iterations for specified quality value. Definition at line 241 of file faogenlib.h. Referenced by generate_example(). |
|
Check if ao data is generated.
Referenced by generate_example(). |
|
Set alpha-test texture map for object.
|
|
Set transformation matrix for object.
Referenced by generate_example(). |
|
Shutdown faogenlib. Destroys all left objects. Referenced by generate_example(). |
|
Start texture ambient occlusion generation.
Referenced by generate_example(). |
|
Start per-vertex ambient occlusion generation.
Referenced by generate_example(). |