Navigation
API > API/Runtime > API/Runtime/OpenGLDrv
Inheritance Hierarchy
- FRHITexture
- FOpenGLViewableResource
- FOpenGLTexture
References
| Module | OpenGLDrv |
| Header | /Engine/Source/Runtime/OpenGLDrv/Public/OpenGLResources.h |
| Include | #include "OpenGLResources.h" |
Syntax
class FOpenGLTexture :
public FRHITexture,
public FOpenGLViewableResource
Variables
| Type | Name | Description | |
|---|---|---|---|
| GLenum const | Attachment | The OpenGL attachment point. | |
| uint8 const: 1 | bAlias | ||
| uint8 const: 1 | bArrayTexture | ||
| uint8 const: 1 | bCanCreateAsEvicted | ||
| uint8 const: 1 | bCubemap | ||
| uint8 const: 1 | bDepthStencil | ||
| uint8 const: 1 | bIsPowerOfTwo | ||
| uint8 const: 1 | bMultisampleRenderbuffer | ||
| uint8 const: 1 | bStreamable | ||
| TUniquePtr< FTextureEvictionParams > | EvictionParamsPtr | ||
| uint32 const | MemorySize | ||
| FOpenGLSamplerState * | SamplerState | Pointer to current sampler state in this unit. | |
| GLenum const | Target | The OpenGL texture target. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FOpenGLTexture
(
FOpenGLTextureCreateDesc const& CreateDesc |
Standard constructor. | ||
FOpenGLTexture
(
FOpenGLTextureCreateDesc const& CreateDesc, |
Constructor for external resources (RHICreateTexture2DFromResource etc). | ||
FOpenGLTexture
(
FOpenGLTexture& Texture, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AliasResources
(
FOpenGLTexture& Texture |
||
| bool | CanBeEvicted () |
||
| void | CloneViaCopyImage
(
FOpenGLTexture* Src, |
Clone texture from a source using CopyImageSubData | |
| bool | GetAllocatedStorageForMip
(
uint32 MipIndex, |
Accessors to mark whether or not we have allocated storage for each mip/face. | |
| uint32 | GetLockSize
(
uint32 MipIndex, |
Returns the size of the memory block that is returned from Lock, threadsafe | |
| GLuint | GetRawResourceName - A const accessor to the resource name, this could potentially be an evicted resource. | ||
| const GLuint & | GetRawResourceNameRef - A const accessor to the resource name, this could potentially be an evicted resource. | ||
| GLuint | GetResource () |
||
| GLuint & | |||
| bool | IsEvicted () |
||
| void * | Lock
(
uint32 MipIndex, |
Locks one of the texture's mip-maps. | |
| void | Resolve
(
uint32 MipIndex, |
Resolved the specified face for a read Lock, for non-renderable, CPU readable surfaces this eliminates the readback inside Lock itself. | |
| void | RestoreEvictedGLResource
(
bool bAttemptToRetainMips |
Texture eviction. | |
| void | SetAllocatedStorage
(
bool bInAllocatedStorage |
Set allocated storage state for all mip/faces. | |
| void | SetAllocatedStorageForMip
(
uint32 MipIndex, |
||
| void | SetResource
(
GLuint InResource |
||
| void | |||
| void | Unlock
(
uint32 MipIndex, |
Unlocks a previously locked mip-map. |
Overridden from FRHITexture
| Type | Name | Description | |
|---|---|---|---|
| void * | FRHITexture override. | ||
| void * | Returns access to the platform-specific RHI texture baseclass. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EAliasConstructorParam | Constructor for RHICreateAliasedTexture. |