Changeset 1488
- Timestamp:
- Jun 17, 2012, 9:35:36 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gpu/framebuffer.cpp
r1455 r1488 117 117 } 118 118 119 void FrameBuffer::Clear(vec4 color)120 {121 #if defined USE_D3D9 || defined _XBOX122 #elif !defined __CELLOS_LV2__ && !defined __ANDROID__123 glClearColor(color.r, color.g, color.b, color.a);124 glClear(GL_COLOR_BUFFER_BIT);125 #endif126 }127 128 void FrameBuffer::Clear(vec4 color, float depth)129 {130 #if defined USE_D3D9 || defined _XBOX131 #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 #endif136 }137 138 119 void FrameBuffer::Bind() 139 120 {
Note: See TracChangeset
for help on using the changeset viewer.