mirror of
https://github.com/emily33901/oxide2.git
synced 2025-08-03 08:56:03 -04:00
Remove garbage
This commit is contained in:
parent
9d17cf105d
commit
513dceb71a
3
.gitignore
vendored
3
.gitignore
vendored
@ -615,4 +615,5 @@ gdb.txt
|
|||||||
core
|
core
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
.cquery_cached_index
|
.cquery_cached_index
|
||||||
|
lib/
|
||||||
|
.vscode/
|
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"files.associations": {
|
|
||||||
"*.txt": "plaintext",
|
|
||||||
"xiosbase": "c"
|
|
||||||
}
|
|
||||||
}
|
|
42
LICENSE
42
LICENSE
@ -1,21 +1,21 @@
|
|||||||
Copyright (c) 2020 Emily Hudson
|
Copyright (c) 2020 Emily Hudson
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
modification, are permitted provided that the following conditions are met:
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
1. Redistributions of source code must retain the above copyright notice, this
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
list of conditions and the following disclaimer.
|
list of conditions and the following disclaimer.
|
||||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
this list of conditions and the following disclaimer in the documentation
|
this list of conditions and the following disclaimer in the documentation
|
||||||
and/or other materials provided with the distribution.
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
# Oxide
|
# Oxide
|
||||||
Crossplatform overlay window
|
Crossplatform overlay window
|
@ -3,6 +3,5 @@
|
|||||||
echo creating projects...
|
echo creating projects...
|
||||||
|
|
||||||
premake5 vs2017
|
premake5 vs2017
|
||||||
premake5 export-compile-commands
|
|
||||||
|
|
||||||
echo finished.
|
echo finished.
|
@ -1,6 +1,5 @@
|
|||||||
echo creating projects...
|
echo creating projects...
|
||||||
|
|
||||||
./premake5 "gmake"
|
./premake5 "gmake"
|
||||||
./premake5 "export-compile-commands"
|
|
||||||
|
|
||||||
echo finished.
|
echo finished.
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
typedef enum Oxide_InitResult {
|
typedef enum Oxide_InitResult {
|
||||||
oxide_init_success,
|
oxide_init_success,
|
||||||
oxide_init_window_failed,
|
oxide_init_window_failed,
|
||||||
oxide_init_gl_failed,
|
oxide_init_gl_failed,
|
||||||
oxide_init_target_failed,
|
oxide_init_target_failed,
|
||||||
} Oxide_InitResult;
|
} Oxide_InitResult;
|
||||||
|
|
||||||
extern Oxide_InitResult oxide_init(const char *target_name);
|
extern Oxide_InitResult oxide_init(const char *target_name);
|
||||||
extern void oxide_shutdown();
|
extern void oxide_shutdown();
|
||||||
|
|
||||||
extern bool oxide_set_target(const char *target_name);
|
extern bool oxide_set_target(const char *target_name);
|
||||||
extern void oxide_begin_frame();
|
extern void oxide_begin_frame();
|
||||||
extern void oxide_end_frame();
|
extern void oxide_end_frame();
|
||||||
|
|
||||||
typedef struct Oxide_WindowSize {
|
typedef struct Oxide_WindowSize {
|
||||||
int width;
|
int width;
|
||||||
int height;
|
int height;
|
||||||
} Oxide_WindowSize;
|
} Oxide_WindowSize;
|
||||||
|
|
||||||
extern Oxide_WindowSize oxide_resize();
|
extern Oxide_WindowSize oxide_resize();
|
||||||
|
Binary file not shown.
5236
src/GL/eglew.h
5236
src/GL/eglew.h
File diff suppressed because it is too large
Load Diff
47372
src/GL/glew.h
47372
src/GL/glew.h
File diff suppressed because it is too large
Load Diff
3550
src/GL/glxew.h
3550
src/GL/glxew.h
File diff suppressed because it is too large
Load Diff
2894
src/GL/wglew.h
2894
src/GL/wglew.h
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
94
src/oxide.c
94
src/oxide.c
@ -1,47 +1,47 @@
|
|||||||
#include "oxide_internal.h"
|
#include "oxide_internal.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define GLEW_STATIC
|
#define GLEW_STATIC
|
||||||
#include "GL/glew.h"
|
#include "GL/glew.h"
|
||||||
|
|
||||||
bool oxide_init_gl() {
|
bool oxide_init_gl() {
|
||||||
oxide_init_os_gl();
|
oxide_init_os_gl();
|
||||||
|
|
||||||
glewInit();
|
glewInit();
|
||||||
|
|
||||||
glClearColor(0, 0, 0, 0);
|
glClearColor(0, 0, 0, 0);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Oxide_InitResult oxide_init(const char *target_name) {
|
Oxide_InitResult oxide_init(const char *target_name) {
|
||||||
bool window_success = oxide_init_window();
|
bool window_success = oxide_init_window();
|
||||||
if (!window_success) {
|
if (!window_success) {
|
||||||
return oxide_init_window_failed;
|
return oxide_init_window_failed;
|
||||||
}
|
}
|
||||||
bool gl_success = oxide_init_gl();
|
bool gl_success = oxide_init_gl();
|
||||||
if (!gl_success) {
|
if (!gl_success) {
|
||||||
return oxide_init_gl_failed;
|
return oxide_init_gl_failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!oxide_set_target(target_name)) {
|
if (!oxide_set_target(target_name)) {
|
||||||
return oxide_init_target_failed;
|
return oxide_init_target_failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
oxide_resize();
|
oxide_resize();
|
||||||
|
|
||||||
return oxide_init_success;
|
return oxide_init_success;
|
||||||
}
|
}
|
||||||
|
|
||||||
void oxide_shutdown() {
|
void oxide_shutdown() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void oxide_begin_frame() {
|
void oxide_begin_frame() {
|
||||||
oxide_begin_os_frame();
|
oxide_begin_os_frame();
|
||||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
void oxide_end_frame() {
|
void oxide_end_frame() {
|
||||||
oxide_end_os_frame();
|
oxide_end_os_frame();
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "oxide.h"
|
#include "oxide.h"
|
||||||
|
|
||||||
extern void oxide_begin_os_frame();
|
extern void oxide_begin_os_frame();
|
||||||
extern void oxide_end_os_frame();
|
extern void oxide_end_os_frame();
|
||||||
|
|
||||||
extern bool oxide_init_os_gl();
|
extern bool oxide_init_os_gl();
|
||||||
extern bool oxide_init_window();
|
extern bool oxide_init_window();
|
Loading…
x
Reference in New Issue
Block a user