I have been searching the internet for tutorials on how to make your own graphic functions, like writing pixels, displaying sprites and so on. Does anyone here know where to find a tutorial for that?
I have been searching the internet for tutorials on how to make your own graphic functions, like writing pixels, displaying sprites and so on. Does anyone here know where to find a tutorial for that?
howdy,
try searching for
opengl
M.R.
I don't like you very much. Please post a lot less.
Cheez
*and then*
No, I know you were joking. My point still stands.
OpenGL just uses the hardware drivers of whatever video GPU you have, I think he meant he was trying to find ways to write his own instead of using any pre existing specification.
Yes, I do mean to write my own functions, not use pre-existing ones.
>>Yes, I do mean to write my own functions, not use pre-existing ones.
That's really advanced and hardware specific, if I were going to do it I'd grab some Open-Source graphics library and look over the code real hard to get the gist of things. I can pretty much guarantee that you won't find a tutorial on it though.
*Cela*
It all depends on how you define 'own made functions'.
You could use a third-party API like Win32 and write your function
on that.
If you're still not satisfied with that i'd say use Assembly, but it'l
be hard to entirely write your own draw function close to the
hardware.
I would use a 3rd party API to do this, such as DirectX or OpenGL.
Can't I make the graphic functions in all C++? or do I need to use assembly?
I'm not sure what you're trying to do, but it will probably depend on what you're doing it on. What hardware/os are you using?
Joe
I am using Win XP and a Geforce2. I am trying to create functions in C++ that I can draw pixels.
Microsoft have already made one for you; but you'll need to know a bit about their API. Other than that you can use another API (OpenGL, DX, etc), get a dos compiler and write to video memory and hope the virtual machine copes, or write a device driver. Each of these would require a more in depth explanation. What sounds most appealing?
Joe
rubish();Originally posted by Glirk Dient
Can't I make the graphic functions in all C++?
Last edited by Travis Dane; 01-24-2003 at 05:32 PM.
Rubbish.No, C++ is a high level language meaning that it utilizes other
code to get things done, if you want to entirely write a function
yourself you end up with assembly because thats the lowest
possible language meaning you write almost ON the hardware.
Joe
How about correcting me so whe can all learn hm?Originally posted by JoeSixpack
Rubbish.
OK. It is possible to write to an arbitrary memory location using C++ (assuming your operating environment allows it). Therefore, you can theoretically write to the video memory. This does not need assembly, only sufficient privilege. Assembly (without some fancy tricks) isn't going to give you this. If you didn't have sufficient priviledge you'd probably have to write a device driver; not necessarily in assembly.How about correcting me so whe can all learn hm?
Besides, all higher-level languages at some point will translate to assembly; does this mean you can't write anything in a high level language (the op wanted to write graphics functions in C++)?
Joe