Jetson Inference
DNN Vision Library
glTexture Class Reference

OpenGL texture with CUDA interoperability. More...

#include <glTexture.h>

Public Member Functions

 ~glTexture ()
 
void Render (float x, float y)
 
void Render (float x, float y, float width, float height)
 
void Render (const float4 &rect)
 
uint32_t GetID () const
 
uint32_t GetWidth () const
 
uint32_t GetHeight () const
 
uint32_t GetFormat () const
 
uint32_t GetSize () const
 
void * MapCUDA ()
 
void Unmap ()
 
bool UploadCPU (void *data)
 

Static Public Member Functions

static glTextureCreate (uint32_t width, uint32_t height, uint32_t format, void *data=NULL)
 

Detailed Description

OpenGL texture with CUDA interoperability.

Constructor & Destructor Documentation

◆ ~glTexture()

glTexture::~glTexture ( )

Member Function Documentation

◆ Create()

static glTexture* glTexture::Create ( uint32_t  width,
uint32_t  height,
uint32_t  format,
void *  data = NULL 
)
static

◆ GetFormat()

uint32_t glTexture::GetFormat ( ) const
inline

◆ GetHeight()

uint32_t glTexture::GetHeight ( ) const
inline

◆ GetID()

uint32_t glTexture::GetID ( ) const
inline

◆ GetSize()

uint32_t glTexture::GetSize ( ) const
inline

◆ GetWidth()

uint32_t glTexture::GetWidth ( ) const
inline

◆ MapCUDA()

void* glTexture::MapCUDA ( )

◆ Render() [1/3]

void glTexture::Render ( float  x,
float  y 
)

◆ Render() [2/3]

void glTexture::Render ( float  x,
float  y,
float  width,
float  height 
)

◆ Render() [3/3]

void glTexture::Render ( const float4 &  rect)

◆ Unmap()

void glTexture::Unmap ( )

◆ UploadCPU()

bool glTexture::UploadCPU ( void *  data)

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