You could use GL_POINTS for points and use an orthographic frustum for 2D.
--- On Mon, 3/15/10, Jimmy Johnson <[email protected]> wrote: From: Jimmy Johnson <[email protected]> Subject: [c-prog] Re: Off topic but need help with openGL in C/C++ To: [email protected] Date: Monday, March 15, 2010, 11:33 AM --- In c-p...@yahoogroups. com, Thomas Hruska <thru...@... > wrote: > > > I'm not sure, but when working with 3D, it is best to stick to 3D - you > can supposedly simulate 2D sprites in 3D by taking two triangles to make > a square/rectangle and then putting the texture on that. I digress. A > quick Google search turned up: > > http://www.c- sharpcorner. com/UploadFile/ jeradus/OpenGLBa sics111720050143 > 07AM/OpenGLBasic s.aspx > > While that is for C#, it should be easy to translate to C/C++. > > -- > Thomas Hruska > CubicleSoft President > Ph: 517-803-4197 > > *NEW* MyTaskFocus 1.1 > Get on task. Stay on task. > > http://www.CubicleS oft.com/MyTaskFo cus/ > Yes, tell my professor that. We have to implement our own line drawing, etc routines. All I can do is draw a dot (not a vertex), and I can't even do that. [Non-text portions of this message have been removed]
