~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/yafray/intern/yafray_Render.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "DNA_material_types.h"
24
24
#include "DNA_meta_types.h"
25
25
#include "DNA_mesh_types.h"
 
26
#include "DNA_meshdata_types.h"
26
27
#include "DNA_object_types.h"
27
28
#include "DNA_packedFile_types.h"
28
29
#include "DNA_radio_types.h"
62
63
#include <map>
63
64
#include <string>
64
65
#include <vector>
 
66
#include <set>
65
67
 
66
68
class yafrayRender_t
67
69
{
73
75
 
74
76
                // mtds
75
77
                bool exportScene();
76
 
 
77
78
                void addDupliMtx(Object* obj);
78
 
 
79
79
                bool objectKnownData(Object* obj);
80
80
 
81
81
        protected:
82
82
                Object* maincam_obj;
83
83
                float mainCamLens;
84
84
 
85
 
                int maxraydepth;
86
85
                bool hasworld;
87
86
 
88
87
                std::map<Object*, std::vector<VlakRen*> > all_objects;
89
88
                std::map<std::string, Material*> used_materials;
90
 
                std::map<std::string, std::pair<Material*, MTex*> > used_textures;
 
89
                std::map<std::string, MTex*> used_textures;
91
90
                std::map<std::string, std::vector<float> > dupliMtx_list;
92
91
                std::map<std::string, Object*> dup_srcob;
93
92
                std::map<void*, Object*> objectData;
 
93
                std::map<Image*, std::set<Material*> > imagetex;
 
94
                std::map<std::string, std::string> imgtex_shader;
94
95
 
95
 
                Object* findObject(const char* name);
96
96
                bool getAllMatTexObs();
97
97
 
98
98
                virtual void writeTextures()=0;
 
99
                virtual void writeShader(const std::string &shader_name, Material* matr, const std::string &facetexname)=0;
99
100
                virtual void writeMaterialsAndModulators()=0;
100
101
                virtual void writeObject(Object* obj, const std::vector<VlakRen*> &VLR_list, const float obmat[4][4])=0;
101
102
                virtual void writeAllObjects()=0;
102
103
                virtual void writeLamps()=0;
103
104
                virtual void writeCamera()=0;
 
105
                virtual void writeAreaLamp(LampRen* lamp, int num, float iview[4][4])=0;
104
106
                virtual void writeHemilight()=0;
105
107
                virtual void writePathlight()=0;
106
108
                virtual bool writeWorld()=0;