X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Frender_area_2d.cxx;h=ae8784c542ace2433402bd9bb615d8541171db54;hb=73fbc05a6b6af52825c792902d7738f9cad7ec2f;hp=2ad7edefa426cb04753ff566f0edf728e4ec6dd4;hpb=3a6cadf6286b769f5945616cb189ad830b785c97;p=flightgear.git diff --git a/src/Instrumentation/render_area_2d.cxx b/src/Instrumentation/render_area_2d.cxx index 2ad7edefa..ae8784c54 100644 --- a/src/Instrumentation/render_area_2d.cxx +++ b/src/Instrumentation/render_area_2d.cxx @@ -17,18 +17,16 @@ // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // $Id$ -#include "render_area_2d.hxx" -//#include - -#include - -//using namespace std; +#ifdef HAVE_CONFIG_H +# include +#endif +#include "render_area_2d.hxx" static const float dummy_normals[][3] = {{0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f}, @@ -65,6 +63,7 @@ RenderArea2D::RenderArea2D(int logx, int logy, int sizex, int sizey, int posx, i } void RenderArea2D::draw() { +#if 0 glDisable(GL_TEXTURE_2D); /* glColor3f(1, 1, 0); @@ -103,6 +102,7 @@ void RenderArea2D::draw() { } glEnable(GL_TEXTURE_2D); +#endif } // Set clipping region in logical units @@ -336,25 +336,34 @@ void RenderArea2D::Flush() { // ----------------------------------------- void RenderArea2D::doSetColor( const float *rgba ) { + //OSGFIXME +#if 0 glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, rgba); glColor4fv( rgba ); +#endif } void RenderArea2D::doDrawQuad( const sgVec2 *p, const sgVec3 *normals ) { //cout << "doDrawQuad: " << *p[0] << ", " << *(p[0]+1) << ", " << *p[1] << ", " << *(p[1]+1) << ", " << *p[2] << ", " << *p([2]+1) << ", " << *p[3] << ", " << *p([3]+1) <<'\n'; + //OSGFIXME +#if 0 glBegin(GL_QUADS); glNormal3fv( normals[0] ); glVertex2fv( p[0] ); glNormal3fv( normals[1] ); glVertex2fv( p[1] ); glNormal3fv( normals[2] ); glVertex2fv( p[2] ); glNormal3fv( normals[3] ); glVertex2fv( p[3] ); glEnd(); +#endif } void RenderArea2D::doDrawQuad( const sgVec2 *p, const sgVec3 *normals, const sgVec4 *color ) { + //OSGFIXME +#if 0 glBegin(GL_QUADS); glColor4fv( color[0] );glNormal3fv( normals[0] ); glVertex2fv( p[0] ); glColor4fv( color[1] );glNormal3fv( normals[1] ); glVertex2fv( p[1] ); glColor4fv( color[2] );glNormal3fv( normals[2] ); glVertex2fv( p[2] ); glColor4fv( color[3] );glNormal3fv( normals[3] ); glVertex2fv( p[3] ); glEnd(); +#endif }