◆ Texture() [1/2]
| RavEngine::Texture::Texture |
( |
const std::string & |
filename | ) |
|
Create a texture given a file
- Parameters
-
| filename | name of the texture |
◆ Texture() [2/2]
| RavEngine::Texture::Texture |
( |
int |
width, |
|
|
int |
height, |
|
|
const Config & |
config |
|
) |
| |
|
inline |
Create a texture from data
- Parameters
-
| width | width of the texture |
| height | height of the texture |
| hasMipMaps | does the texture contain mip maps |
| numLayers | the number of layers in the texture (NOT channels!) |
| data | pointer to the image data. Must be a 4-channel image. |
| flags | optional creation flags |
◆ GetTextureSize()
- Returns
- size of the texture in pixels
The documentation for this struct was generated from the following files:
- RavEngine/include/RavEngine/Texture.hpp
- RavEngine/src/Texture.cpp