Go to advanced search

by openglnoob
Wed Jun 25, 2014 9:37 pm
Forum: OpenVG
Topic: Draw to a texture using OpenVG
Replies: 1
Views: 2561

Draw to a texture using OpenVG

I'm using both OpenGL and OpenVG on my application, and i'm using the VGFONT native implementation to draw texts. Everything was wokring fine until now, cause i've been rendering directly on the screen, into a window surface. But now I need to draw a text into an OpenGL texture instead. Since I can'...
by openglnoob
Mon Jun 02, 2014 9:21 pm
Forum: OpenGLES
Topic: Problem rendering bitmap image
Replies: 8
Views: 4520

Re: Problem rendering bitmap image

Thanks everyone. Here's what I've done... I've forced the number of row pixels to be a multiple of 4: int newWidth = outWidth & (~3); int newSize = newWidth * outHeight * 3; unsigned char * newData2 = (unsigned char*) malloc(sizeof(char) * (newSize)); int rowSize = outWidth*3*sizeof(char); // nu...
by openglnoob
Fri May 30, 2014 10:31 pm
Forum: OpenGLES
Topic: Problem rendering bitmap image
Replies: 8
Views: 4520

Problem rendering bitmap image

I'm trying to render a bitmap image on OGLES2 and I'm having trouble getting it right. The image is 24 bit RGB, 819x1024 Here is the original bitmap image: https://www.flickr.com/photos/125072184@N08/14308333765/ 1st case: If I simply render the pixels directly, the image shows upsidedown with R and...

Go to advanced search