Added new virtual reseveElements, setElement, getElment and addElement methods to DrawElements

to make is easier to write code that can work on DrawElementUByte, UShort or UInt.

Changed the osgTerrain::GeometryTechnique so that it automatically chooses 
the use of DrawElementUShort or DrawElementsUInt accordining to the size of the tile.
This commit is contained in:
Robert Osfield
2009-03-25 11:17:21 +00:00
parent 36b3907d79
commit 20ad246896
4 changed files with 112 additions and 43 deletions

View File

@@ -54,10 +54,15 @@ bool FFmpegDecoder::open(const std::string & filename)
formatParams.channel = 0;
formatParams.standard = 0;
#if 1
formatParams.width = 640;
formatParams.height = 480;
#else
formatParams.width = 640;
formatParams.height = 480;
#endif
formatParams.time_base.num = 1;
formatParams.time_base.den = 50;
formatParams.time_base.den = 15;
iformat = av_find_input_format("video4linux2");