violet
Simple, cross-platform graphics API
Loading...
Searching...
No Matches
violet.h
1
#ifndef __VIOLET_H__
2
#define __VIOLET_H__
3
4
#include <vector>
5
6
#include "id.h"
7
8
#if defined(__APPLE__)
9
#include "../priv/mtl_renderer.h"
10
#elif defined(_WIN32)
11
#include "../priv/d3d11_renderer.h"
12
#elif defined(__EMSCRIPTEN__)
13
#include "../priv/webgl2_renderer.h"
14
#endif
15
16
#include "render.h"
17
18
namespace
violet {
19
20
#if defined(__APPLE__)
21
using
Renderer =
violet::RendererImpl<render::Metal>
;
22
using
RenderCommandEncoderType =
23
violet::RenderCommandEncoder<render::MetalRenderEncoder>
;
24
#elif defined(_WIN32)
25
using
Renderer =
violet::RendererImpl<render::D3D11>
;
26
#elif defined(__EMSCRIPTEN__)
27
using
Renderer =
violet::RendererImpl<render::WebGL2>
;
28
#endif
29
30
}
// namespace violet
31
32
#endif
violet::RendererImpl
Definition
render.h:295
violet::RenderCommandEncoder
Definition
render.h:267
include
violet
violet.h
Generated by
1.12.0