~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to dae23ds/include/DAE23dsMaterialsWriter.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2009 NetAllied Systems GmbH
 
3
 
 
4
    This file is part of dae23ds.
 
5
        
 
6
    Licensed under the MIT Open Source License, 
 
7
    for details please see LICENSE file or the website
 
8
    http://www.opensource.org/licenses/mit-license.php
 
9
*/
 
10
 
 
11
#ifndef __DAE23DS_MATERIALWRITER_H__
 
12
#define __DAE23DS_MATERIALWRITER_H__
 
13
 
 
14
#include "DAE23dsPrerequisites.h"
 
15
#include "DAE23dsMaterialsBase.h"
 
16
 
 
17
 
 
18
namespace DAE23ds
 
19
{
 
20
 
 
21
        class MaterialsWriter : public MaterialsBase 
 
22
        {
 
23
        private:
 
24
                Common::Buffer& mBuffer;
 
25
 
 
26
        public:
 
27
 
 
28
        /** Constructor. */
 
29
                MaterialsWriter(Writer* writer3ds);
 
30
 
 
31
        /** Destructor. */
 
32
                virtual ~MaterialsWriter();
 
33
 
 
34
                /** Writes all the material block and fill the Unique ID Material Number map.*/
 
35
                bool write();
 
36
 
 
37
        private:
 
38
 
 
39
        /** Disable default copy ctor. */
 
40
                MaterialsWriter( const MaterialsWriter& pre );
 
41
 
 
42
        /** Disable default assignment operator. */
 
43
                const MaterialsWriter& operator= ( const MaterialsWriter& pre );
 
44
                
 
45
                /** writes one color block using rgb byte .*/
 
46
                bool writeColorBlock(const COLLADAFW::Color& color, ChunkID chunkId);
 
47
        };
 
48
 
 
49
} // namespace DAE23DS
 
50
 
 
51
#endif // __DAE23DS_MATERIALWRITER_H__