Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - GP

Pages: [1]
Support / A few questions...
« on: April 19, 2003, 09:29:15 am »
Hello. I'm a student and a game progammer, I am currently planning to make a 3D online tabletop wargame simulation. I recently found jPCT and I must say it's really impressive, it's an API you can effectively use from day 1.

I have a few questions about 2D blitting. In the game, one has to display 2D info on a unit (status icons, unit name, morale/energy bars), as well as the classical sidebar a la Warcraft. Reading the documentation, I see that there are two ways to do that : with a Texture, and with an array (which is not advised for performance). Problem is, while the status icons can be just loaded from file and used, other elements can change. How do I display things like a status bar or text? The Texture class only has constructors for loading them from a file, not for modifying them on the fly (unless I write the new image to disk!). Is the slow method the only one? I remember that passing ints to OpenGL was painfully slow when I tried it... Isn't it a way to get, for example, an Image from the Texture and have an update(Image i) to change the texture after altering the Image?

I don't know if I was clear enough... this is my first real 3D project!
Thank you for your attention


Pages: [1]