#include <msp/core/refptr.h>
#include <msp/datafile/collection.h>
#include <msp/strings/format.h>
+#include "error.h"
#include "material.h"
#include "renderpass.h"
#include "program.h"
void RenderPass::Loader::uniforms()
{
if(!obj.shprog)
- throw InvalidState("Can't load uniforms without a shader program");
+ throw invalid_operation("RenderPass::Loader::uniforms");
if(!obj.shdata)
obj.shdata = new ProgramData(*obj.shprog);
load_sub(*obj.shdata);
void RenderPass::TextureLoader::texenv()
{
- throw Exception("TexEnvs can't be loaded yet");
+ throw runtime_error("TexEnvs can't be loaded yet");
/*env = new TexEnv;
load_sub(*env);*/
}