TOpenGLBuffer

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

BaseType

TOpenGLBuffer

References

Module

OpenGLDrv

Header

/Engine/Source/Runtime/OpenGLDrv/Public/OpenGLResources.h

Include

#include "OpenGLResources.h"

Syntax

template<typename BaseType, BufferBindFunction BufBind>
class TOpenGLBuffer : public BaseType

Variables

Name Description

Public variable

uint64

 

ModificationCount

Needed on OS X to force a rebind of the texture buffer to the texture name to workaround radr://18379338

Public variable

GLuint

 

Resource

Public variable

GLenum

 

Type

Constructors

Name Description

Public function

TOpenGLBuffer()

Public function

TOpenGLBuffer

(
    GLenum InType,
    uint32 InStride,
    uint32 InSize,
    EBufferUsageFlags InUsage,
    const void* InData,
    bool bStreamedDraw,
    GLuint ResourceToUse,
    uint32 ResourceSize
)

Destructors

Name Description

Public function Virtual

~TOpenGLBuffer()

Functions

Name Description

Public function

void

 

Bind()

Public function

void

 

CreateGLBuffer

(
    const void* InData,
    const GLuint ResourceToUse,
    const uint32 ResourceSize
)

Public function Const

void *

 

GetLockedBuffer()

Public function Const

bool

 

IsDynamic()

Public function Const

bool

 

IsLocked()

Public function Const

bool

 

IsLockReadOnly()

Public function

uint8 *

 

Lock

(
    uint32 InOffset,
    uint32 InSize,
    bool bReadOnly,
    bool bDiscard
)

Public function

uint8 *

 

LockWriteOnlyUnsynchronized

(
    uint32 InOffset,
    uint32 InSize,
    bool bDiscard
)

Public function

void

 

ReleaseCachedBuffer()

Public function

void

 

Swap

(
    TOpenGLBuffer& Other
)

Public function

void

 

Unlock()

Public function

void

 

Update

(
    void* InData,
    uint32 InOffset,
    uint32 InSize,
    bool bDiscard
)