X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgraphic.h;h=f457d3690b297a91d989dc92ed9ce5fa634268d4;hb=9fdbf99cdb3c5620e665c3ecb34e83d778cb311a;hp=1647d2f811f49704ca3ce9795fdedaef637ebcb9;hpb=c2635c5a3dca6a6cea5562fd387beb0662b18cf0;p=libs%2Fgltk.git diff --git a/source/graphic.h b/source/graphic.h index 1647d2f..f457d36 100644 --- a/source/graphic.h +++ b/source/graphic.h @@ -1,13 +1,7 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GLTK_GRAPHIC_H_ #define MSP_GLTK_GRAPHIC_H_ +#include #include #include #include "geometry.h" @@ -55,7 +49,7 @@ public: const GL::Texture2D *get_texture() const { return texture; } unsigned get_width() const { return slice.w; } unsigned get_height() const { return slice.h; } - void render(unsigned, unsigned) const; + void build(unsigned, unsigned, GL::PrimitiveBuilder &) const; private: void create_coords(float, float, float, float, float, std::vector &) const; void create_texcoords(float, float, float, float, float, std::vector &) const;