View previous topic :: View next topic |
Author |
Message |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Fri Feb 05, 2010 1:47 pm Post subject: Looking for a drawing api. |
|
|
Tell me a good drawing api. At first I wanna do 2d but also 3d in the future, so it should support 3d.
_________________
Intel over amd yes. |
|
Back to top |
|
 |
AtheistCrusader Grandmaster Cheater
Reputation: 6
Joined: 23 Sep 2006 Posts: 681
|
Posted: Fri Feb 05, 2010 3:14 pm Post subject: |
|
|
DirectX
openGL
Windows API
|
|
Back to top |
|
 |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Fri Feb 05, 2010 5:04 pm Post subject: |
|
|
use the graphics() class and you have a list of good functions.
|
|
Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Fri Feb 05, 2010 5:46 pm Post subject: |
|
|
iPromise wrote: | use the graphics() class and you have a list of good functions. |
How is that an api? Are you avoiding my topic just to increase your post count? I thought I made it clear that I don't like the inbuilt class. I want something.. well more.
_________________
Intel over amd yes. |
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Feb 05, 2010 6:12 pm Post subject: |
|
|
DX is probably your best bet
ID3DXSPRITE makes 2d work simple as shit, it handles all the internal vertex / index buffers for you, the retarded half pixel DX9 shit, sets up the render states, handles all the batching, etc.
ID3DXFONT provides you with a nice way to render text. Just make sure you use the preload functions and pass it a sprite interface for batching or you'll rape your performance.
IND3XMESH has a bunch of nice features for 3d work, especially the optimization functions which do all kinda of nice reordering on your data.
D3DX also has various functions for loading all kinds of data so you don't have to write your own.
D3DX has tons of functionality that will make your life so much easier and it's FAST. You're probably unlikely to get any faster, the functions tend to be optimized by both AMD and Intel and it will pick the appropriate code path, and it'll do work in the graphics hardware instead wherever beneficial.
Your biggest enemy in 2d is going to be draw calls / state changes and fillrate. Each time you change texture, you're making a state change. ID3DXSPRITE has a flag that will reorder drawing so that it draws all of one texture at a time to minimize changes, but the most common optimization in 2d to avoid this cost is to use a texture atlas (aka keep as much as your textures in 1 texture and merely shift where you're pulling from on the texture to avoid a state change).
I could go on forever, but graphics work is a lot of fun... and equally as deep. There's a TON of shit to get caught up in.
These are some really good tutorials to get started. http://thetavern.servebeer.com/?p=articles
|
|
Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
|
Back to top |
|
 |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Fri Feb 05, 2010 7:08 pm Post subject: |
|
|
I meant look at the api's inside the graphics() class.
|
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Feb 05, 2010 8:59 pm Post subject: |
|
|
You never said what language you're using?
if you're using .NET you can use SlimDX
|
|
Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Sat Feb 06, 2010 8:31 am Post subject: |
|
|
slovach wrote: | You never said what language you're using?
if you're using .NET you can use SlimDX |
I'm codeing in C# with VS2010B2.
Can't I just use the official dx? I have sdk installed. If i use slim my end users will have to install slim and I dont want that.
_________________
Intel over amd yes. |
|
Back to top |
|
 |
|