#ifndef MSP_GLTK_GRAPHIC_H_
#define MSP_GLTK_GRAPHIC_H_
+#include <msp/gl/primitivebuilder.h>
#include <msp/gl/texture2d.h>
#include <msp/datafile/loader.h>
#include "geometry.h"
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<float> &) const;
void create_texcoords(float, float, float, float, float, std::vector<float> &) const;