VenomEngine
Cross-Platform Modern Graphics Engine
Loading...
Searching...
No Matches
venom::common::Texture Class Reference
+ Inheritance diagram for venom::common::Texture:

Public Member Functions

 Texture (const char *path)
 
 Texture (const char *path, int id, char *bgraData, unsigned int width, unsigned int height)
 
bool operator== (const GraphicsCachedResource *res) const
 
bool operator== (const vc::SPtr< GraphicsCachedResource > &res) const
 
vc::Error LoadImageFromFile (const char *path)
 
vc::Error LoadImage (const char *path, int id, char *bgraData, unsigned int width, unsigned int height)
 
void LoadImageFromCachedResource (const SPtr< GraphicsCachedResource > res)
 
vc::Error InitDepthBuffer (int width, int height)
 
vc::Error CreateAttachment (int width, int height, int imageCount, vc::ShaderVertexFormat format)
 
vc::Error CreateReadWriteTexture (int width, int height, vc::ShaderVertexFormat format, int mipMapLevels, int arraLayers=1)
 
vc::Error CreateShadowMaps (int dimension)
 
vc::Error CreateShadowCubeMaps (int dimension)
 
vc::Error SetMemoryAccess (const TextureMemoryAccess access)
 
bool HasTexture () const
 
const vc::String & GetName ()
 
const vc::String & GetShortName ()
 
int GetWidth () const
 
int GetHeight () const
 
const TextureMemoryAccess & GetMemoryAccess () const
 
const float & GetTexturePeakLuminance () const
 
const float & GetTextureAverageLuminance () const
 
vc::Error SaveImageToFile (const char *path)
 
vc::Error GetGUITextureID (void **ptrToTextureId) const
 
- Public Member Functions inherited from venom::common::PluginObjectWrapper
 PluginObjectWrapper (PluginObject *impl)
 
 PluginObjectWrapper (const PluginObjectWrapper &other)
 
PluginObjectWrapper & operator= (const PluginObjectWrapper &other)
 
 PluginObjectWrapper (PluginObjectWrapper &&other)
 
PluginObjectWrapper & operator= (PluginObjectWrapper &&other)
 
PluginObject * GetImpl ()
 
const PluginObject * GetImpl () const
 
const PluginObject * GetConstImpl () const
 
bool IsImplInitialized () const
 
void Destroy ()
 

Static Public Member Functions

static void UnloadAllGuiTextures ()
 

Friends

class GraphicsApplication
 

Additional Inherited Members

- Protected Attributes inherited from venom::common::PluginObjectWrapper
PluginObject * _impl
 

The documentation for this class was generated from the following files: