X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Frendermethod.h;h=723aa5a25733c980c85d6db62e06eb1bc4d04669;hp=11c7e8583ecd430f759fe75fb078aac5317700d2;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=c0b7d6ee4a7478f5aecb1504429ec1fc846d64ed diff --git a/source/materials/rendermethod.h b/source/materials/rendermethod.h index 11c7e858..723aa5a2 100644 --- a/source/materials/rendermethod.h +++ b/source/materials/rendermethod.h @@ -30,7 +30,6 @@ public: static ActionMap shared_actions; public: - Loader(RenderMethod &); Loader(RenderMethod &, Collection &); private: virtual void init_actions(); @@ -73,21 +72,17 @@ private: TextureSlot(Tag t): tag(t), texture(0), sampler(0) { } }; - const Program *shprog; - bool shprog_from_material; + const Program *shprog = 0; + bool shprog_from_material = false; RefPtr shdata; std::map uniform_slots; - const Material *material; + const Material *material = 0; std::string material_slot; std::vector textures; - CullMode face_cull; - bool receive_shadows; - bool image_based_lighting; + CullMode face_cull = CULL_BACK; + bool receive_shadows = false; + bool image_based_lighting = false; -public: - RenderMethod(); - -private: void maybe_create_material_shader(); void set_material_textures();