Lines Matching defs:GLFrame

31 // A GLFrame stores pixel data on the GPU. It uses two kinds of GL data
34 // and when pixel data is uploaded to a GLFrame. The FBO is used as a rendering
38 GLFrame::GLFrame(GLEnv* gl_env)
56 bool GLFrame::Init(int width, int height) {
65 bool GLFrame::InitWithTexture(GLint texture_id, int width, int height) {
72 bool GLFrame::InitWithFbo(GLint fbo_id, int width, int height) {
80 bool GLFrame::InitWithExternalTexture() {
87 void GLFrame::InitDimensions(int width, int height) {
94 GLFrame::~GLFrame() {
110 bool GLFrame::GenerateMipMap() {
118 bool GLFrame::SetTextureParameter(GLenum pname, GLint value) {
133 bool GLFrame::UpdateTexParameters() {
141 bool GLFrame::TexParametersModifed() {
148 void GLFrame::SetDefaultTexParameters() {
155 bool GLFrame::ResetTexParameters() {
166 bool GLFrame::CopyDataTo(uint8_t* buffer, int size) {
172 bool GLFrame::CopyPixelsTo(uint8_t* buffer) {
183 bool GLFrame::WriteData(const uint8_t* data, int data_size) {
187 bool GLFrame::SetViewport(int x, int y, int width, int height) {
195 GLFrame* GLFrame::Clone() const {
196 GLFrame* target = new GLFrame(gl_env_);
202 bool GLFrame::CopyPixelsFrom(const GLFrame* frame) {
206 std::vector<const GLFrame*> sources;
214 int GLFrame::Size() const {
218 ShaderProgram* GLFrame::GetIdentity() const {
227 bool GLFrame::BindFrameBuffer() const {
239 bool GLFrame::FocusFrameBuffer() {
256 bool GLFrame::BindTexture() const {
261 GLuint GLFrame::GetTextureId() const {
265 // Returns the held FBO id. Only call this if the GLFrame holds an FBO. You
267 GLuint GLFrame::GetFboId() const {
271 bool GLFrame::FocusTexture() {
283 bool GLFrame::GenerateTextureName() {
287 ALOGE("GLFrame: Cannot generate texture id %d, as it is in use already!", texture_id_);
302 bool GLFrame::AllocateTexture() {
305 LOG_FRAME("GLFrame: Allocating texture: %d", texture_id_);
324 bool GLFrame::TextureWasDeleted() const {
328 bool GLFrame::GenerateFboName() {
332 ALOGE("GLFrame: Cannot generate FBO id %d, as it is in use already!", fbo_id_);
347 bool GLFrame::ReadFboPixels(uint8_t* pixels) const {
362 bool GLFrame::ReadTexturePixels(uint8_t* pixels) const {
377 std::vector<const GLFrame*> sources;
381 GLFrame target(gl_env_);
391 bool GLFrame::AttachTextureToFbo() {
427 bool GLFrame::ReattachTextureToFbo() {
431 bool GLFrame::DetachTextureFromFbo() {
448 bool GLFrame::UploadTexturePixels(const uint8_t* pixels) {