class Program;
class ProgramData;
class Renderer;
+class Sampler;
class Texture;
class Texturing;
/**
Encapsulates the data that determines the appearance of a rendered surface.
This includes shader and data for it, material and texturing.
-
-XXX Does not delete inline texture from datafiles properly
*/
class RenderPass
{
{
private:
unsigned index;
- RefPtr<Texture> tex;
+ const Texture *tex;
+ const Sampler *samp;
public:
TextureLoader(Texturing &, unsigned, Collection *);
private:
virtual void finish();
+ void sampler(const std::string &);
void texture(const std::string &);
- void texture2d();
};
RefPtr<const Program> shprog;