40 #ifndef _graphicsbillboard_cpp
41 #define _graphicsbillboard_cpp
48 #include "exception.h"
50 #include "stringtool.h"
59 GraphicsBillboard(InternalBillboard)
175 Real OwnWidth = -1.0, OwnHeight = -1.0;
176 Real LeftTexCoord = -1.0, TopTexCoord = -1.0, RightTexCoord = -1.0, BottomTexCoord = -1.0;
179 if( !CurrAttrib.
Empty() )
183 if( !CurrAttrib.
Empty() )
184 OwnWidth = CurrAttrib.
AsReal();
187 if( !CurrAttrib.
Empty() )
188 OwnHeight = CurrAttrib.
AsReal();
190 if( OwnWidth >= 0 && OwnHeight >= 0 ) {
195 if( !CurrAttrib.
Empty() )
196 LeftTexCoord = CurrAttrib.
AsReal();
199 if( !CurrAttrib.
Empty() )
200 TopTexCoord = CurrAttrib.
AsReal();
203 if( !CurrAttrib.
Empty() )
204 RightTexCoord = CurrAttrib.
AsReal();
207 if( !CurrAttrib.
Empty() )
208 BottomTexCoord = CurrAttrib.
AsReal();
210 if( LeftTexCoord >= 0 && TopTexCoord >= 0 && RightTexCoord >= 0 && BottomTexCoord >= 0 ) {
215 if( !LocationNode.
Empty() ) {
221 if( !DirectionNode.
Empty() ) {
227 if( !ColourNode.
Empty() ) {
240 {
return "Billboard"; }