Skip to content

Commit a6f5272

Browse files
committed
initial commit
0 parents  commit a6f5272

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea/
2+
cmake-build-debug/

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cmake_minimum_required(VERSION 3.22)
2+
project(gl_validation_layer)
3+
4+
set(CMAKE_CXX_STANDARD 17)
5+
6+
add_library(gl_validation_layer src/context.cpp)
7+
8+
target_include_directories(gl_validation_layer PUBLIC include/)
9+
target_compile_options(gl_validation_layer PRIVATE -Wall -Werror)

include/gl_layer/context.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#ifndef GL_VALIDATION_LAYER_H_
2+
#define GL_VALIDATION_LAYER_H_
3+
4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
7+
8+
int gl_layer_init(int gl_version_major, int gl_version_minor);
9+
void gl_layer_terminate();
10+
11+
void gl_layer_callback(const char* name, void* func_ptr, int num_args, ...);
12+
13+
#ifdef __cplusplus
14+
};
15+
#endif
16+
17+
#endif

src/context.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include <gl_layer/context.h>

0 commit comments

Comments
 (0)