Saga
Saga Game Engine
Loading...
Searching...
No Matches
material.h
Go to the documentation of this file.
1#pragma once
2
3#include "Graphics/global.h"
4#include "Graphics/material.h"
5#include <memory>
6
7namespace Saga {
8
13struct Material {
14 std::shared_ptr<GraphicsEngine::Material> material;
15
16 operator std::shared_ptr<GraphicsEngine::Material> &() { return material; }
17 operator const std::shared_ptr<GraphicsEngine::Material> &() const { return material; }
18
23 Material();
24
31 Material(glm::vec3 color, float shininess = 1.f);
32
38 Material(float shininess);
39
46 Material(std::shared_ptr<GraphicsEngine::Texture> texture, float shininess = 1.f);
47
52 static auto id_value()
53 -> uint64_t & {
54 static uint64_t the_id;
55 return the_id;
56 }
57};
58
59} // namespace Saga
Definition: app.cpp:8
Wrapper around the GraphisEngine's material.
Definition: material.h:13
static auto id_value() -> uint64_t &
Used for assigning new material name in the graphics engine.
Definition: material.h:52
Material()
Construct a new Material object.
Definition: material.cpp:8
std::shared_ptr< GraphicsEngine::Material > material
Definition: material.h:14