Jump to content

  • Log In with Google      Sign In   
  • Create Account

stankar

Member Since 26 Sep 2012
Offline Last Active Nov 21 2012 07:13 AM

Posts I've Made

In Topic: Resize function for 3D and 2D

18 October 2012 - 12:26 PM

I found the solution, I look like an idi*t right now, it's really simple:
static float width=1366.0, height=768.0;
void Resize (int x, int y)
{
    width=(float)x;
    height=(float)y;
}
Then in Main method i'm using glutReshapeWindow(Resize) :)

In Topic: [PhysX] how to use it for obj model ?

17 October 2012 - 12:21 PM

Ad 1) thanks, I'll google it :)
Ad 2) I mean of coarse car with wheels (shape of the car could be a box), I didn't find examples for this and I'm newbie so it's difficult for me.

In Topic: Switching from Fullscreen to Window

13 October 2012 - 12:15 PM

After some googling I found solution:
on keyboard pressed "F":
if(fkey==false) {
  fkey=true;
  width=1366.0;
  height=768.0;
  glutFullScreen();
}
else {
  fkey=false;
  width=800.0;
  height=600.0;
  glutPositionWindow(0,0);
  glutReshapeWindow(800,600);
}
I have some troubles with reshape function that reshaped fullscreen to window, but instead of size 800x600 was same as fullscreen 1366x768 and when I moved glutPositionWindow before Reshape method it worked :)

In Topic: Switching from Fullscreen to Window

12 October 2012 - 01:48 PM

I have bad resize function which is in Display method because I don't know how can I resize 3D and 2D in method outside of Display method :(

In Topic: render obj file with bad shapes

08 October 2012 - 02:36 PM

Thanks a lot, now it works like a charm :)

PARTNERS