Fixes for warnings under VisualStudio

This commit is contained in:
Robert Osfield 2002-04-17 11:36:38 +00:00
parent 7504312839
commit 5830c60cef
5 changed files with 16 additions and 1 deletions

View File

@ -5,8 +5,8 @@
#ifndef OSG_COLORMATRIX
#define OSG_COLORMATRIX 1
#include <osg/StateAttribute>
#include <osg/Matrix>
#include <osg/StateAttribute>
namespace osg {

View File

@ -5,6 +5,7 @@
#ifndef OSG_STATEATTRIBUTE
#define OSG_STATEATTRIBUTE 1
#include <osg/Export>
#include <osg/Object>
#include <osg/GL>

View File

@ -1,3 +1,8 @@
#if defined(WIN32) && !(defined(__CYGWIN__) || defined(__MINGW32__))
// disable the double to float errors.
#pragma warning( disable : 4305 )
#endif
static float vertex[][3] = {
{ 5998.7998, 41456.1016, 1.7800 },

View File

@ -1,3 +1,7 @@
#if defined(WIN32) && !(defined(__CYGWIN__) || defined(__MINGW32__))
// disable the double to float errors.
#pragma warning( disable : 4305 )
#endif
static float normal[][3] = {
{ -0.2560, -0.1125, 0.9600 },

View File

@ -1,3 +1,8 @@
#if defined(WIN32) && !(defined(__CYGWIN__) || defined(__MINGW32__))
// disable the double to float errors.
#pragma warning( disable : 4305 )
#endif
static float texcoord[][2] = {
#ifdef _ORIGINAL_ /* [ */
{ 0.1121, 0.0171 },