well you can create an orthoview with the dimensions of the screen.
ie
glOrtho(0,0,320,480,0,20);

then you can use pixel coords to draw your stuff.. it would be non
perspective though.
Peter

On 29 Okt., 04:40, Matt Quigley <[email protected]> wrote:
> I'm making a 2D game, with sprites drawn using the glDrawTexfOES()
> method.  I'm wondering if there are ways to draw things like lines and
> squares along side this.
>
> Now, I know that technically there's nothing stopping me from drawing
> 3D cubes and such.  But, you see, glDrawTexfOES draws using pixel
> coordinates, i.e. draw texture at 30,30.  What I'd like is a similar
> approach to boxes and lines, using pixel coordinates, i.e. draw line
> from (5,5) to (10,10).  Is this possible?
>
> I don't want to simulate 3D coordinates because it would be very hard
> to try to get the camera and perspective in such a perfect way where I
> could say draw cube from (5,5,0) to (10,10,0), as well as from
> (300,300,0) to (310, 310, 0), with no perspective warping in the
> different corners.  (Also, as a backup plan I can always create my
> line and box effects with sprite textures as well, but I thought I'd
> ask)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to