Author Topic: Some questions on OpenGL  (Read 14162 times)

0 Members and 1 Guest are viewing this topic.

Offline Haubitze

  • ZX 81
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Some questions on OpenGL
« Reply #20 on: August 14, 2013 »
i think it is a rootozoomer...

i make a

Code: [Select]
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

Offline Canopy

  • Atari ST
  • ***
  • Posts: 208
  • Karma: 20
    • View Profile
Re: Some questions on OpenGL
« Reply #21 on: August 15, 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

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Re: Some questions on OpenGL
« Reply #22 on: August 19, 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:
Code: [Select]
#include "wglext.h"

PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC) wglGetProcAddress("wglSwapIntervalEXT");
if (wglSwapIntervalEXT) wglSwapIntervalEXT(1);
Challenge Trophies Won:

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: Some questions on OpenGL
« Reply #23 on: August 21, 2013 »
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.
« Last Edit: August 21, 2013 by ninogenio »
Challenge Trophies Won: