2018-04-12 16:08:48 +02:00
|
|
|
/*
|
2019-08-03 19:43:48 +02:00
|
|
|
* This software is licensed under the terms of the MIT License.
|
2018-04-12 16:08:48 +02:00
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
2019-01-23 21:10:43 +01:00
|
|
|
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
|
2019-07-03 20:00:56 +02:00
|
|
|
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
|
2018-04-12 16:08:48 +02:00
|
|
|
*/
|
|
|
|
|
2021-08-12 23:09:01 +02:00
|
|
|
#pragma once
|
2018-04-12 16:08:48 +02:00
|
|
|
#include "taisei.h"
|
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
2018-09-14 09:37:20 +02:00
|
|
|
typedef struct ShaderObject ShaderObject;
|
2018-04-12 16:08:48 +02:00
|
|
|
|
2018-09-14 09:37:20 +02:00
|
|
|
extern ResourceHandler shader_object_res_handler;
|
2018-04-12 16:08:48 +02:00
|
|
|
|
|
|
|
#define SHOBJ_PATH_PREFIX "res/shader/"
|
2019-01-23 21:10:43 +01:00
|
|
|
|
2020-06-09 03:33:22 +02:00
|
|
|
DEFINE_RESOURCE_GETTER(ShaderObject, res_shader_object, RES_SHADER_OBJECT)
|
|
|
|
DEFINE_OPTIONAL_RESOURCE_GETTER(ShaderObject, res_shader_object_optional, RES_SHADER_OBJECT)
|