This section of the archives stores flipcode's complete Developer Toolbox collection, featuring a variety of mini-articles and source code contributions from our readers.

 

  FOV Example
  Submitted by



void setFov(GLfloat fov) {
    GLfloat w = winW / winH;
    glMatrixMode(GL_PROJECTION);
    glFrustum (-w, w, -1.0, 1.0, fov, 9999);
    glMatrixMode(GL_MODELVIEW);
    glViewport(0, 0, winW, winH);
} 



Download Associated File: fov.cpp (209 bytes)

void setFov(GLfloat fov) {
    GLfloat w = winW / winH;
    glMatrixMode(GL_PROJECTION);
    glFrustum (-w, w, -1.0, 1.0, fov, 9999);
    glMatrixMode(GL_MODELVIEW);
    glViewport(0, 0, winW, winH);
}
 

The zip file viewer built into the Developer Toolbox made use of the zlib library, as well as the zlibdll source additions.

 

Copyright 1999-2008 (C) FLIPCODE.COM and/or the original content author(s). All rights reserved.
Please read our Terms, Conditions, and Privacy information.