Ignore:
Timestamp:
Feb 17, 2011, 7:06:33 PM (9 years ago)
Author:
sam
Message:

Get rid of the SHADER_CRAP macro and use LOL_EXPERIMENTAL instead,
together with the --enable-experimental flag. Use LOL_DEBUG and
LOL_RELEASE instead of the previous values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.cpp

    r657 r658  
    2929#include "core.h"
    3030
    31 #if SHADER_CRAP
     31#if LOL_EXPERIMENTAL
    3232    GLuint prog, sh1, sh2;
    3333    GLint uni_m1, uni_m2, uni_m3;
     
    3636#endif
    3737
    38 #if SHADER_CRAP
     38#if LOL_EXPERIMENTAL
    3939static char const *vertexshader =
    4040    "#version 130\n"
     
    8686    glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
    8787
    88 #if SHADER_CRAP
     88#if LOL_EXPERIMENTAL
    8989    sh1 = glCreateShader(GL_VERTEX_SHADER);
    9090    glShaderSource(sh1, 1, &vertexshader, NULL);
     
    123123void Video::SetFov(float theta)
    124124{
    125 #if SHADER_CRAP
     125#if LOL_EXPERIMENTAL
    126126    float width = GetWidth();
    127127    float height = GetHeight();
     
    186186void Video::Clear()
    187187{
    188 #if SHADER_CRAP
     188#if LOL_EXPERIMENTAL
    189189    glViewport(0, 0, GetWidth(), GetHeight());
    190190    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
     
    214214#endif
    215215
    216 #if SHADER_CRAP
     216#if LOL_EXPERIMENTAL
    217217    static float time;
    218218    time += 0.01f;
     
    225225void Video::Destroy()
    226226{
    227 #if SHADER_CRAP
     227#if LOL_EXPERIMENTAL
    228228    glDetachShader(prog, sh1);
    229229    glDetachShader(prog, sh2);
Note: See TracChangeset for help on using the changeset viewer.