123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- /**
- * Copyright (c) 2011 Nokia Corporation.
- *
- * CAUTION: This class is in very early experimental state.
- *
- */
- #include "SpriteBatch.h"
- void SpriteBatch::draw( int texture, float x, float y, float w, float h, float angle )
- {
- SpriteDrawInfo sdi;
- sdi.textureHandle = texture;
- sdi.setTargetPos( x, y );
- sdi.setScale( w, h );
- sdi.angle = angle;
- draw( &sdi );
- }
- void SpriteBatch::draw( int texture, float x, float y, float w, float h, float *col )
- {
- SpriteDrawInfo sdi;
- sdi.textureHandle = texture;
- sdi.setTargetPos( x, y );
- sdi.setScale( w, h );
- if (col)
- sdi.setColor( col );
- draw( &sdi );
- }
- void SpriteBatch::draw( int texture, float x, float y, float w, float h, float *col, float angle )
- {
- SpriteDrawInfo sdi;
- sdi.textureHandle = texture;
- sdi.angle = angle;
- sdi.setTargetPos( x, y );
- sdi.setScale( w, h );
- if (col)
- sdi.setColor( col );
- draw( &sdi );
- }
|