Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bitmap Creation

2 views
Skip to first unread message

ronie

unread,
Dec 20, 2003, 9:02:02 PM12/20/03
to
I have to create an image, calculating each point at the beginning of the
program because has to change based on user input. The problem how to store
the point of the image for displaying it as a texture?


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----

cr88192

unread,
Dec 21, 2003, 12:43:01 AM12/21/03
to

"ronie" <ro...@ticino.com> wrote in message
news:3fe4f...@corp.newsgroups.com...

> I have to create an image, calculating each point at the beginning of the
> program because has to change based on user input. The problem how to
store
> the point of the image for displaying it as a texture?
>
I assume you are using gl.

what you would want to do would be to retain a copy of the associated
bitmap, draw onto it, and reload it as a texture.

look for:
glBindTexture
glTexImage2D
...

eg:
you bind the texture number;
you use glTexImage2D to reload it;
...

ok, this is not very specific, I know.

0 new messages