harshagarwal
Journeyman
what language do game programmers used in the games such as
ENTER THE MATRIX
DOOM 3
HALF LIFE 2
and so on
plz help
ENTER THE MATRIX
DOOM 3
HALF LIFE 2
and so on
plz help
And who create thosh languages
Iconoclast said:Many game programmers use c++ and vc++
Doom 3 major code was written in Vc++
OpenGl is also nice for game programmers
I have made many games in VB and PERL the 2 simplest languages in the world
int CGLSample1View::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CView::OnCreate(lpCreateStruct) == -1)
return -1;
HWND hWnd = GetSafeHwnd();
HDC hDC = ::GetDC(hWnd);
if (SetWindowPixelFormat(hDC)==FALSE)
return 0;
return 0;
}
void CGLSample2View::OnSize(UINT nType, int cx, int cy)
{
CView::OnSize(nType, cx, cy);
GLsizei width, height;
GLdouble aspect;
width = cx;
height = cy;
if (cy==0)
aspect = (GLdouble)width;
else
aspect = (GLdouble)width/(GLdouble)height;
glViewport(0, 0, width, height);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluOrtho2D(0.0, 500.0*aspect, 0.0, 500.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
}