TOpenGLBuffer

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, GLenum Type, 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

Constructors

Name Description

Public function

TOpenGLBuffer

(
    uint32 InStride,
    uint32 InSize,
    uint32 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

 

Unlock()

Public function

void

 

Update

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss