2017-09-17 19:55:16 +00:00
|
|
|
/*
|
|
|
|
* Modern effects for a modern Streamer
|
|
|
|
* Copyright (C) 2017 Michael Fabian Dirks
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2018-09-27 01:07:13 +00:00
|
|
|
#include <cinttypes>
|
2018-01-18 02:12:52 +00:00
|
|
|
#include <xmmintrin.h>
|
2019-01-14 10:23:21 +00:00
|
|
|
#include "gs-limits.hpp"
|
|
|
|
|
|
|
|
// OBS
|
2019-01-14 22:21:29 +00:00
|
|
|
#ifdef _MSC_VER
|
2018-09-27 01:07:13 +00:00
|
|
|
#pragma warning(push)
|
|
|
|
#pragma warning(disable : 4201)
|
2019-01-14 22:21:29 +00:00
|
|
|
#endif
|
2018-09-27 01:07:13 +00:00
|
|
|
#include <graphics/vec3.h>
|
2019-01-14 22:21:29 +00:00
|
|
|
#ifdef _MSC_VER
|
2018-09-27 01:07:13 +00:00
|
|
|
#pragma warning(pop)
|
2019-01-14 22:21:29 +00:00
|
|
|
#endif
|
2017-09-17 19:55:16 +00:00
|
|
|
|
2018-03-20 11:43:37 +00:00
|
|
|
namespace gs {
|
|
|
|
struct vertex {
|
2018-09-27 01:07:13 +00:00
|
|
|
vec3* position;
|
|
|
|
vec3* normal;
|
|
|
|
vec3* tangent;
|
2018-01-18 04:01:54 +00:00
|
|
|
uint32_t* color;
|
2018-09-27 01:07:13 +00:00
|
|
|
vec4* uv[MAXIMUM_UVW_LAYERS];
|
2018-01-19 01:58:57 +00:00
|
|
|
|
2018-03-20 11:43:37 +00:00
|
|
|
vertex();
|
|
|
|
vertex(vec3* p, vec3* n, vec3* t, uint32_t* col, vec4* uv[MAXIMUM_UVW_LAYERS]);
|
|
|
|
~vertex();
|
2018-01-19 01:58:57 +00:00
|
|
|
|
|
|
|
private:
|
2018-09-27 01:07:13 +00:00
|
|
|
bool hasStore;
|
2018-01-19 01:58:57 +00:00
|
|
|
void* store;
|
2017-09-17 19:55:16 +00:00
|
|
|
};
|
2018-09-27 01:07:13 +00:00
|
|
|
} // namespace gs
|