webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
GlTextureFrameBuffer (int pixelFormat) | |
void | setSize (int width, int height) |
int | getWidth () |
int | getHeight () |
int | getFrameBufferId () |
int | getTextureId () |
void | release () |
Helper class for handling OpenGL framebuffer with only color attachment and no depth or stencil buffer. Intended for simple tasks such as texture copy, texture downscaling, and texture color conversion.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Release texture and framebuffer. An EGLContext must be bound on the current thread when calling this function. This object should not be used after this call.
|
inline |
(Re)allocate texture. Will do nothing if the requested size equals the current size. An EGLContext must be bound on the current thread when calling this function. Must be called at least once before using the framebuffer. May be called multiple times to change size.