Changeset 1488


Ignore:
Timestamp:
Jun 17, 2012, 9:35:36 AM (8 years ago)
Author:
sam
Message:

gpu: remove FrameBuffer::Clear(), it's not really useful.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gpu/framebuffer.cpp

    r1455 r1488  
    117117}
    118118
    119 void FrameBuffer::Clear(vec4 color)
    120 {
    121 #if defined USE_D3D9 || defined _XBOX
    122 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__
    123     glClearColor(color.r, color.g, color.b, color.a);
    124     glClear(GL_COLOR_BUFFER_BIT);
    125 #endif
    126 }
    127 
    128 void FrameBuffer::Clear(vec4 color, float depth)
    129 {
    130 #if defined USE_D3D9 || defined _XBOX
    131 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__
    132     glClearColor(color.r, color.g, color.b, color.a);
    133     //glClearDepthf(depth);
    134     glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    135 #endif
    136 }
    137 
    138119void FrameBuffer::Bind()
    139120{
Note: See TracChangeset for help on using the changeset viewer.