I ain't mad 'cause the thread was locked- it wasn't a bug in the end, so it was neccessary. I'm just continuing this so I can answer your questions, Mark.
Now let's begin..
Yes, actually, because you decided to 'screw up' (in my book) DrawImageRect. Think I was happy about having to write my own procedures to draw portions of textures? No. But I had to because you decided to go with a different implementation instead of, oh, I don't know, maybe sticking to what you already had?
Let me explain what I mean- this is the old DrawImageRect:
This is the new DrawImageRect:
Notice the two missing arguments? Yeah, those're the ones that screwed me big-time. So now I use my function:
So now I have a function that does everything. It draws a portion of an image with variable width and height, and since all gadgets in my GUI's control/gadget/widget skins are on the same texture. So I have to be able to draw portions of textures or split up my control skins into about 9 pieces per control.
So if you can give me a function that allows me to draw a portion of an image (a DrawImageRect(Image:Object,X%,Y%,W%,H%,Rect_X%,Rect_Y%,Rect_Width%,Rect_Height%) is all I need- and I think we both know how easy that is to write- in fact, if you guarantee to include my code to do that, I'll write it for you), I'll be set.
Even so, if I wanted to make my code work with only Max2D stuff, you'd have to provide me with a SetupOrtho() function, 'cause otherwise I have to use API-specific functions.
Now let's begin..
But do you really need to even be using GL?
Yes, actually, because you decided to 'screw up' (in my book) DrawImageRect. Think I was happy about having to write my own procedures to draw portions of textures? No. But I had to because you decided to go with a different implementation instead of, oh, I don't know, maybe sticking to what you already had?
Let me explain what I mean- this is the old DrawImageRect:
DrawImageRect image,x,y,rect_x,rect_y,rect_width,rect_height,[frame]
This is the new DrawImageRect:
DrawImageRect( image:TImage,x#,y#,w#,h#,frame=0 )
Notice the two missing arguments? Yeah, those're the ones that screwed me big-time. So now I use my function:
DrawImageBlock(Img:TImage,X#,Y#,Width#,Height#,TX#,TY#,TWidth#,THeight#,Frame%=0,Rotation#=0,MX#=0,MY#=0)
So now I have a function that does everything. It draws a portion of an image with variable width and height, and since all gadgets in my GUI's control/gadget/widget skins are on the same texture. So I have to be able to draw portions of textures or split up my control skins into about 9 pieces per control.
So if you can give me a function that allows me to draw a portion of an image (a DrawImageRect(Image:Object,X%,Y%,W%,H%,Rect_X%,Rect_Y%,Rect_Width%,Rect_Height%) is all I need- and I think we both know how easy that is to write- in fact, if you guarantee to include my code to do that, I'll write it for you), I'll be set.
Even so, if I wanted to make my code work with only Max2D stuff, you'd have to provide me with a SetupOrtho() function, 'cause otherwise I have to use API-specific functions.