Basic window, coordinate, vector, and such display question
Posted 13 January 2012 - 03:14 AM
I'm coding my own engine design right now and, being new to everything, and having created my own brew as to how 3D data is stored, I need some help with basic functions. Basically, I need, well, the utter basics to allow me to mess around "live" with my code. I need to be able to display a window, get sizing info of the window, display coordinates and draw lines in between coordinates, take keyboard, mouse, and gamepad input, etc etc. I especially need to be able to use the window, take H/W ratio and pixel values, and use it to draw lines (and manipulate the lines) in between coordinates that I'm storing in arrays. The really simple stuff; however, I'm not using "traditional" 3D data (that's where my own design comes in), so I need to be able to take existing functions and use them for my own deals. Simple stuff... Just the basics of barfing a window up and being able to see things live and edit them live when inputting code. I'm just getting familiar with various game APIs, and I'd like really specific direction to navigate the sea of 'em out there.
Thanks for any help!
Posted 13 January 2012 - 04:02 AM
You could also look at the NeHe tutorials on OpenGL (click the "Lessons 01-05" and other links on the right side). These show how to use the Windows API directly to create a window, get OpenGL running, and do some basic input handling.
Or, if Direct3D is more your thing, you can certainly find plenty of tutorials online about getting that up and running in a window as well.
Finally, you might want to pick up a book on OpenGL or D3D, instead of relying on internet tutorials. That might give you a smoother and certainly more complete introduction to the subject.
Posted 15 January 2012 - 08:24 PM
Do you have a preferred API/APIs library? I'm developing my prototype code for an online-based game "portal" which I'm sure will use client-server structure vs. flash or "webgame" format stuff. I'm trying to get a handle on potential issues which, well, I don't know if they're actually issues, but things like different browsers, PC and Mac OSes...etc. I don't know how much those things would really affect a site like mine, but I would like to adapt my prototype code to a language and API set(s) that would smoothly run independently of browser and OS. Or at least, run on the major ones.
Posted 06 February 2012 - 10:51 AM
I start off the series with nothing but an empty project, and by the time you are done you'll have a functional game engine you can use to create a 3d game like Ghost Toast:
Play my free games: Ghost Toast, Zing
Posted 17 February 2012 - 12:25 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users