blob: 3addce762b36edaf09d504f8ed9246f85276c32e (
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
|
// Gawain context
//
// This code is part of the Gawain library, with modifications
// specific to integration with Blender.
//
// Copyright 2018 Mike Erwin
//
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of
// the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
#pragma once
// This interface allow Gawain to manage VAOs for mutiple context and threads.
#ifdef __cplusplus
extern "C" {
#endif
#include "gwn_common.h"
#include "gwn_batch.h"
#include "gwn_shader_interface.h"
typedef struct Gwn_Context Gwn_Context;
Gwn_Context* GWN_context_create(void);
void GWN_context_discard(Gwn_Context*);
void GWN_context_active_set(Gwn_Context*);
Gwn_Context* GWN_context_active_get(void);
#ifdef __cplusplus
}
#endif
|