|
FPLBase
An open source project by
FPL.
|
Collections of textures used for rendering multi-texture models. More...
#include <material.h>
Collections of textures used for rendering multi-texture models.
Public Member Functions | |
| Material () | |
| Default constructor for Material. | |
| void | Set (Renderer &renderer) |
| Set the renderer for this Material. More... | |
| std::vector< Texture * > & | textures () |
| Get all Textures from this Material. More... | |
| const std::vector< Texture * > & | textures () const |
| Get all Textures from this Material. More... | |
| int | blend_mode () const |
| Get the blend mode for this Material. More... | |
| void | set_blend_mode (BlendMode blend_mode) |
| Set the blend mode. More... | |
| void | DeleteTextures () |
| Delete all Textures in this Material. | |
Public Member Functions inherited from fplbase::Asset | |
| void | IncreaseRefCount () |
| indicate there is an additional owner of this asset. By default, when you call any of the UnLoad*() functions in the AssetManager, that will directly delete the asset since they all start out with a single reference count. Call this function to indicate multiple owners will call Unload*() independently, and only have the asset deleted by the last one. | |
Static Public Member Functions | |
| static Material * | LoadFromMaterialDef (const char *filename, const TextureLoaderFn &tlf) |
| Load a .fplmat file, and all the textures referenced from it. Used by the more convenient AssetManager interface, but can be used without it. | |
|
inline |
| void fplbase::Material::Set | ( | Renderer & | renderer | ) |
|
inline |
Set the blend mode.
| [in] | blend_mode | A BlendMode enum corresponding to the blend mode to set for this texture. |
blend_mode is passed in.
|
inline |
|
inline |