Aether3D
Game Engine
|
Handles DLL loading and engine object creation. More...
#include <Aether3D.hpp>
Public Member Functions | |
Error::Enum | LoadDLL (const std::string &path) |
Audio * | MakeAudio () |
Camera * | MakeCamera () |
KeyboardInput * | MakeKeyboardInput () |
Light * | MakeLight (Light::Type lightType) |
Material * | MakeMaterial () |
MouseInput * | MakeMouseInput () |
Model * | MakeModel (const std::string &path, Error::Enum &outError) |
Renderer * | MakeRenderer (const std::string &builtinAssetPath) |
Scene * | MakeScene () |
Texture * | MakeTexture (const std::string &path, bool useMipmaps, bool sRGB, Texture::Tiling tiling, Texture::Filter filter) |
Texture * | MakeTexture (const char *left, const char *right, const char *top, const char *bottom, const char *front, const char *back) |
Texture * | MakeRenderTexture (int width, int height) |
Texture * | MakeRenderTextureCube (int size) |
Texture * | MakeTexture (const std::string &atlasPath, const std::string &atlasMetadataPath, const std::string &fileName) |
Static Public Member Functions | |
static const std::string & | ReturnCodeToErrorString (int returnCode) |
Handles DLL loading and engine object creation.
Error::Enum Aether3D_API::LoadDLL | ( | const std::string & | path | ) |
Loads the engine DLL. Must be called before doing anything else with the engine.
path | DLL path. If extension is omitted, it's automatically added depending on the running platform. |
Audio * Aether3D_API::MakeAudio | ( | ) |
Camera * Aether3D_API::MakeCamera | ( | ) |
KeyboardInput * Aether3D_API::MakeKeyboardInput | ( | ) |
Light * Aether3D_API::MakeLight | ( | Light::Type | lightType | ) |
Material * Aether3D_API::MakeMaterial | ( | ) |
Model * Aether3D_API::MakeModel | ( | const std::string & | path, |
Error::Enum & | outError | ||
) |
Loads a model from .ae3d file. Caller is responsible for freeing the allocated memory. Must be called after Renderer::OpenWindow().
path | Model path. |
outError | Error. |
MouseInput * Aether3D_API::MakeMouseInput | ( | ) |
Renderer * Aether3D_API::MakeRenderer | ( | const std::string & | builtinAssetPath | ) |
Creates a renderer and returns its instance. It's a singleton. Doesn't allocate memory so must not be deleted.
Texture * Aether3D_API::MakeRenderTexture | ( | int | width, |
int | height | ||
) |
Creates a 2D render texture. Must be called after Renderer::OpenWindow().
width | Width in pixels. |
height | Height in pixels. |
Texture * Aether3D_API::MakeRenderTextureCube | ( | int | size | ) |
Creates a cube map render texture. Must be called after Renderer::OpenWindow().
size | Width and height in pixels. |
Scene * Aether3D_API::MakeScene | ( | ) |
Texture * Aether3D_API::MakeTexture | ( | const char * | left, |
const char * | right, | ||
const char * | top, | ||
const char * | bottom, | ||
const char * | front, | ||
const char * | back | ||
) |
Loads a cube map texture. Formats supported: .png, .jpg, .tga, .bmp etc. Must be called after Renderer::OpenWindow().
left | Left. |
right | Right. |
top | Top. |
bottom | Bottom. |
front | Front. |
back | Back. |
Texture * Aether3D_API::MakeTexture | ( | const std::string & | atlasPath, |
const std::string & | atlasMetadataPath, | ||
const std::string & | fileName | ||
) |
Loads a texture from an atlas. Formats supported: .png, .jpg, .tga, .bmp etc. Must be called after Renderer::OpenWindow().
atlasPath | Texture path. |
atlasMetadataPath | Meta data path. Format must be CEGUI/Ogre (eg. Texture Packer exports them). |
fileName | Name of texture in atlas. |
Texture * Aether3D_API::MakeTexture | ( | const std::string & | path, |
bool | useMipmaps, | ||
bool | sRGB, | ||
Texture::Tiling | tiling, | ||
Texture::Filter | filter | ||
) |
Loads a texture. Formats supported: .png, .jpg, .tga, .bmp, .dds and .pvr depending on platform. Must be called after Renderer::OpenWindow().
path | Texture path. |
useMipmaps | True, if mipmaps should be generated. |
sRGB | True, if the texture is sRGB. Normal maps should use false. |
tiling | Tiling. |
filter | Filter. |
|
static |
Converts return code to an error string.
returnCode | Integer representation of Error::Enum. |