I’ve been poking around with the framework for a few days and have a few questions I haven’t found answers to yet. Can anyone answer any/all of the following? Thanks!
- I’d like to be able to draw a smaller sub-section of a texture. So rather than calling drawAtPoint (or making a sprite) and having the entire texture drawn, I’d like to be able to give an XY offset and a width/height of the portion of that image I wish to draw. I know you can make a sprite and initialize it with a texture and give the sprite a rect defining this region, but I’m more interested in doing this with a texture object itself rather than a sprite. And no, this doesn’t have anything to deal with atlassing =)
- Clipping. I’d like to be able to define a rectangular region where anything drawn outside of said region isn’t drawn and is ignored. Does the framework itself have a mechanism to do this or is this something I need to deal directly with OpenGL on myself?
- Is it possible to invert how the Y coordinate works? Presently, Y of 0 is the bottom of the screen and higher values are towards the top. I’d like 0 to be the top of the screen. I would imagine this is part of some initial OpenGL camera set up but I’m not sure if there’s a way with the framework to do this.
Thanks! I’m sure I’ll come up with some others later but this is plenty for now.