HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HgiGLDevice Class Referencefinal

#include <device.h>

Public Member Functions

HGIGL_API HgiGLDevice ()
 
HGIGL_API ~HgiGLDevice ()
 
HGIGL_API void SubmitOps (HgiGLOpsVector const &ops)
 Execute the provided functions / ops. This will emit the GL calls. More...
 
HGIGL_API void SetCurrentArena (HgiGLContextArenaHandle const &arenaHandle)
 
HGIGL_API uint32_t AcquireFramebuffer (HgiGraphicsCmdsDesc const &desc, bool resolved=false)
 Returns a framebuffer object id that is managed by the active arena. More...
 
HGIGL_API void GarbageCollect ()
 Garbage collect resources in the active arena. More...
 

Friends

std::ofstreamoperator<< (std::ofstream &out, const HgiGLDevice &dev)
 

Detailed Description

OpenGL implementation of GPU device. Note: HgiGL does not concern itself with GL context management. See notes in hgiGL/hgi.h

Definition at line 46 of file device.h.

Constructor & Destructor Documentation

HGIGL_API HgiGLDevice::HgiGLDevice ( )
HGIGL_API HgiGLDevice::~HgiGLDevice ( )

Member Function Documentation

HGIGL_API uint32_t HgiGLDevice::AcquireFramebuffer ( HgiGraphicsCmdsDesc const &  desc,
bool  resolved = false 
)

Returns a framebuffer object id that is managed by the active arena.

HGIGL_API void HgiGLDevice::GarbageCollect ( )

Garbage collect resources in the active arena.

HGIGL_API void HgiGLDevice::SetCurrentArena ( HgiGLContextArenaHandle const &  arenaHandle)

Sets the active arena to use when submitting commands. This is used for management of resources tied to a GL context such as FBOs. The default arena is used if a valid handle isn't provided.

HGIGL_API void HgiGLDevice::SubmitOps ( HgiGLOpsVector const &  ops)

Execute the provided functions / ops. This will emit the GL calls.

Friends And Related Function Documentation

std::ofstream& operator<< ( std::ofstream out,
const HgiGLDevice dev 
)
friend

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