~cginternals/glraw/trunk

« back to all changes in this revision

Viewing changes to source/glraw/include/glraw/RawFile.h

  • Committer: Daniel Limberger
  • Date: 2014-11-01 23:24:52 UTC
  • mfrom: (69.2.6)
  • Revision ID: git-v1:1466615ce9762f94f649bc7420bd5d6ef609980b
Merge pull request #28 from hpicgs/raw_file_loading

Raw file loading

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
1
#pragma once
3
2
 
4
3
#include <cstdint>
8
7
 
9
8
#include <glraw/glraw_api.h>
10
9
 
 
10
 
11
11
namespace glraw
12
12
{
13
13
 
14
14
class GLRAW_API RawFile
15
15
{
16
16
public:
17
 
    static uint16_t s_magicNumber;
 
17
    static uint16_t s_signature;
18
18
 
19
 
    enum PropertyType {
20
 
        Unknown = 0,
21
 
        IntType = 1,
22
 
        DoubleType = 2,
23
 
        StringType = 3
 
19
    enum class PropertyType 
 
20
        {
 
21
        Unknown = 0,
 
22
        Int             = 1,
 
23
        Double  = 2,
 
24
        String  = 3
24
25
    };
25
26
 
26
27
    RawFile(const std::string & filePath, bool parseProperties = true);