#include <OgreTextureDefinition.h>
|
| BufferDefinition (IdString _name, size_t _numElements, uint32 _bytesPerElement, uint32 _bindFlags, float _widthFactor, float _heightFactor) |
|
void | _setName (IdString newName) |
| Do not call directly. More...
|
|
IdString | getName (void) const |
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info More...
|
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new More...
|
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info More...
|
|
void * | operator new[] (size_t sz) |
|
◆ BufferDefinition()
Ogre::TextureDefinitionBase::BufferDefinition::BufferDefinition |
( |
IdString |
_name, |
|
|
size_t |
_numElements, |
|
|
uint32 |
_bytesPerElement, |
|
|
uint32 |
_bindFlags, |
|
|
float |
_widthFactor, |
|
|
float |
_heightFactor |
|
) |
| |
|
inline |
◆ _setName()
void Ogre::TextureDefinitionBase::BufferDefinition::_setName |
( |
IdString |
newName | ) |
|
|
inline |
Do not call directly.
- See also
- TextureDefinition::renameBuffer instead.
◆ getName()
IdString Ogre::TextureDefinitionBase::BufferDefinition::getName |
( |
void |
| ) |
const |
|
inline |
◆ operator delete() [1/3]
◆ operator delete() [2/3]
◆ operator delete() [3/3]
◆ operator delete[]() [1/2]
◆ operator delete[]() [2/2]
◆ operator new() [1/3]
template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new |
( |
size_t |
sz, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
func |
|
) |
| |
|
inlineinherited |
operator new, with debug line info
◆ operator new() [2/3]
◆ operator new() [3/3]
◆ operator new[]() [1/2]
template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] |
( |
size_t |
sz, |
|
|
const char * |
file, |
|
|
int |
line, |
|
|
const char * |
func |
|
) |
| |
|
inlineinherited |
array operator new, with debug line info
◆ operator new[]() [2/2]
◆ bindFlags
uint32 Ogre::TextureDefinitionBase::BufferDefinition::bindFlags |
◆ bytesPerElement
uint32 Ogre::TextureDefinitionBase::BufferDefinition::bytesPerElement |
◆ heightFactor
float Ogre::TextureDefinitionBase::BufferDefinition::heightFactor |
◆ name
IdString Ogre::TextureDefinitionBase::BufferDefinition::name |
◆ numElements
size_t Ogre::TextureDefinitionBase::BufferDefinition::numElements |
◆ widthFactor
float Ogre::TextureDefinitionBase::BufferDefinition::widthFactor |
Sometimes buffers can be used as a plain-array contiguous image (instead of the swizzled pattern from textures).
The formula to calculate final num elements is : finalNumElements = numElements; if( widthFactor > 0 ) finalNumElements *= (widthFactor * width); if( heightFactor > 0 ) finalNumElements *= (heightFactor * height); For example if you want to do 512 x height; just set numElements to 512 and heightFactor to 1. Since there are no pixel formats, the bytesPerElement controls such such thing (eg. 4 bytes for RGBA8888)
The documentation for this struct was generated from the following file: