Jump to content

  • Log In with Google      Sign In   
  • Create Account

Dannyli

Member Since 02 May 2013
Offline Last Active Aug 26 2013 01:42 PM

Posts I've Made

In Topic: How to move object in Directx?

26 August 2013 - 01:42 PM

can I use   g_pd3dDevice->SetViewport() ?


In Topic: Tic tac toe on 5x5 board

26 August 2013 - 12:39 PM

tic tac toe is in 3x3 Right?


In Topic: texture problem

26 August 2013 - 12:38 PM

can I use the function: glPushAttrib(); and glPopAttrib();?


In Topic: something about the Billboards

04 August 2013 - 10:18 AM

you are right . thanks a lot


In Topic: problem with load obj file

18 June 2013 - 06:09 PM

I am using visual stdio 2010

the error appears at 

void Loadobj(char*filename)
{
string line;
ifstream objfile(filename);
if(objfile.is_open())
{

while(!objfile.eof())
{ getline(objfile,line);
if(line.c_str()[0]=='v')
{ float tmpx,tmpy,tmpz;
sscanf(line.c_str(),"v %f %f %f",&tmpx,&tmpy,&tmpz);
v.push_back(vertex(tmpx,tmpy,tmpz));
}
if(line.c_str()[0]=='f')
{ int a,b,c,d;
sscanf(line.c_str(),"f %d//%d %d//%d %d//%d",&a,&b,&c,&b,&d,&b);
f.push_back(face(a,c,d));
}
}
}

}

because I only use this function


PARTNERS