summaryrefslogtreecommitdiff
path: root/src/objects/model.h
blob: d34130b3fd5d362c294cda9a4b9c641d3254f44f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _MODEL_H
#define _MODEL_H

#include "material.h"

namespace Mauri
{

class Model
{
  public:
    Model() = default;
    ~Model();

    bool autosize = true;
    bool fullscreen = false;
    bool passthrough = false;

    vec2 cropoffset;

    f32 width;
    f32 height;

    static auto parse(Parser &pr, const std::string &path) -> Model *;

    auto load(Engine *engine, Object *object) -> void;

  private:
    Material *material = nullptr;
};

} // namespace Mauri

#endif // _MODEL_H