Update of /cvsroot/playerstage/code/stage/libstage
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4716/libstage
Added Files:
resource.cc
Log Message:
resource transport demo
--- NEW FILE: resource.cc ---
#include "stage_internal.hh"
StgFlag::StgFlag( stg_color_t color, double size )
{
this->color = color;
this->size = size;
}
StgFlag* StgFlag::Nibble( double chunk )
{
StgFlag* piece = NULL;
if( size > 0 )
{
chunk = MIN( chunk, this->size );
piece = new StgFlag( this->color, chunk );
this->size -= chunk;
}
return piece;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit