Author Topic: D3D equivalents for OpenGL  (Read 3621 times)

0 Members and 1 Guest are viewing this topic.

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
D3D equivalents for OpenGL
« on: February 10, 2008 »
Does anyone know what the equivalent D3D command of

glRecti(-1,-1,1,1);

would be? I'm hoping I dont have to use vertices but call some primitive instead...
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: D3D equivalents for OpenGL
« Reply #1 on: February 10, 2008 »
Good question, taj.

I really do not know - had a search on the net. All I
found was the following thread saying what you do
not want to hear (using vertices) ...

http://www.msdner.net/dev-archive/130/20-106-1301547.shtm

Sorry. Didnt find anything else...
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: D3D equivalents for OpenGL
« Reply #3 on: February 11, 2008 »
Thats interesting, I'll try it and see if it triggers the shaders to run.
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: D3D equivalents for OpenGL
« Reply #4 on: February 11, 2008 »
I doubt it, but worth a try.  Otherwise it's probably necessary to draw an indexed primitive.  Look up DrawPrimitiveUP() which takes vertices as a parameter and doesn't need a vertex buffer.

Jim
Challenge Trophies Won: