• Welcome to Dark Bit Factory & Gravity.
 

Some questions on OpenGL

Started by NaniBot, July 18, 2013

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Haubitze

i think it is a rootozoomer...

i make a


draw chip to texture
draw textured plane
adjust camera over plane
adjust u,v texture coordinates.


i think so you can improve you performance

Salute

Canopy

Quote from: ninogenio on August 14, 2013
i think this might be a step too much for NaniBot at this early stage guys

true i guess. when i came back to opengl after a ten year gap i did..

1) static hello triangle, then 2) a cube with 2.1) manual spin controls then 2.2) i fixed the cube shearing with delta timing 3) then the udg challenge here

hellfire

Quote from: ninogenio on August 14, 2013
i think this might be a step too much for NaniBot at this early stage guys
That's probably true but it would be kind to enable vsync using the following code:

#include "wglext.h"

PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC) wglGetProcAddress("wglSwapIntervalEXT");
if (wglSwapIntervalEXT) wglSwapIntervalEXT(1);

Challenge Trophies Won:

ninogenio

#23
Quote
Quote from: ninogenio on August 14, 2013

    i think this might be a step too much for NaniBot at this early stage guys

That's probably true but it would be kind to enable vsync using the following code:

#include "wglext.h"

PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC) wglGetProcAddress("wglSwapIntervalEXT");
if (wglSwapIntervalEXT) wglSwapIntervalEXT(1);

ahh yes this is at least the basic requirement too add too your code essentially what that does is when your user has his vsync set too application controlled in his gfx control panel, your app would vsync and thus run smooth.
Challenge Trophies Won: