DarkShadow44
02-04-2010, 12:47 PM
Hi there !
I have two questions, so I made a double-topic :whistle:
1) How can I change AntiAliasing and Resolution at runtime ?
int iAttributes[] =
{
WGL_DRAW_TO_WINDOW_ARB,GL_TRUE,
WGL_SUPPORT_OPENGL_ARB,GL_TRUE,
WGL_ACCELERATION_ARB,WGL_FULL_ACCELERATION_ARB,
WGL_COLOR_BITS_ARB,24,
WGL_ALPHA_BITS_ARB,8,
WGL_DEPTH_BITS_ARB,16,
WGL_STENCIL_BITS_ARB,0,
WGL_DOUBLE_BUFFER_ARB,GL_TRUE,
WGL_SAMPLE_BUFFERS_ARB,GL_TRUE,
WGL_SAMPLES_ARB,levelAA,
0,0
};
// First We Check To See If We uCan Get A Pixel Format For 4 Samples
valid = wglChoosePixelFormatARB(hDC,iAttributes,fAttribute s,1,&pixelFormat,&numFormats);
I always destroy the current window and create a new one. But then all textures (with "glGenTextures()") are gone...
How can I avoid that ?
2) How can I deform my objects with bones ? If I have all neccessary values, how must I "use" them (rotation,scaling,transformation,...) ?
Thanks for your help in advance ;)
I have two questions, so I made a double-topic :whistle:
1) How can I change AntiAliasing and Resolution at runtime ?
int iAttributes[] =
{
WGL_DRAW_TO_WINDOW_ARB,GL_TRUE,
WGL_SUPPORT_OPENGL_ARB,GL_TRUE,
WGL_ACCELERATION_ARB,WGL_FULL_ACCELERATION_ARB,
WGL_COLOR_BITS_ARB,24,
WGL_ALPHA_BITS_ARB,8,
WGL_DEPTH_BITS_ARB,16,
WGL_STENCIL_BITS_ARB,0,
WGL_DOUBLE_BUFFER_ARB,GL_TRUE,
WGL_SAMPLE_BUFFERS_ARB,GL_TRUE,
WGL_SAMPLES_ARB,levelAA,
0,0
};
// First We Check To See If We uCan Get A Pixel Format For 4 Samples
valid = wglChoosePixelFormatARB(hDC,iAttributes,fAttribute s,1,&pixelFormat,&numFormats);
I always destroy the current window and create a new one. But then all textures (with "glGenTextures()") are gone...
How can I avoid that ?
2) How can I deform my objects with bones ? If I have all neccessary values, how must I "use" them (rotation,scaling,transformation,...) ?
Thanks for your help in advance ;)