Skip to main content
GameDev.net gamedev.net
🔒 Locked

OpenGL porting...

Started by Zoot Sep 29, 2002 at 2:01 PM 0 replies 200+ views
Original Post
Zoot
Zoot
Hello people... I am trying to port my opengl engine to d3d... in opengl i use this code for my frustum.. has d3d got a simular func? which?
  
float A[16];
float B[16];

glGetFloatv( GL_PROJECTION_MATRIX, A );
glGetFloatv( GL_MODELVIEW_MATRIX, B );
  
GSACP: GameDev Society Against Crap PostingTo join: Put these lines in your signature and don't post crap!
Cybertron
Cybertron
use GetTransform(). There are three matricies in DX, projection, view and transform. look in the docs

To make converting you game easier use a custom high-level API rather then the OpenGL functions directly

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.