Remove garbage

This commit is contained in:
Emily Hudson 2020-06-26 18:18:48 +01:00
parent 9d17cf105d
commit 513dceb71a
16 changed files with 29629 additions and 29636 deletions

3
.gitignore vendored
View File

@ -615,4 +615,5 @@ gdb.txt
core
compile_commands.json
.cquery_cached_index
lib/
.vscode/

View File

@ -1,6 +0,0 @@
{
"files.associations": {
"*.txt": "plaintext",
"xiosbase": "c"
}
}

42
LICENSE
View File

@ -1,21 +1,21 @@
Copyright (c) 2020 Emily Hudson
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
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
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
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
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright (c) 2020 Emily Hudson
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
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
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
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
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -1,2 +1,2 @@
# Oxide
# Oxide
Crossplatform overlay window

View File

@ -3,6 +3,5 @@
echo creating projects...
premake5 vs2017
premake5 export-compile-commands
echo finished.

View File

@ -1,6 +1,5 @@
echo creating projects...
./premake5 "gmake"
./premake5 "export-compile-commands"
echo finished.

View File

@ -1,24 +1,24 @@
#pragma once
#include <stdbool.h>
typedef enum Oxide_InitResult {
oxide_init_success,
oxide_init_window_failed,
oxide_init_gl_failed,
oxide_init_target_failed,
} Oxide_InitResult;
extern Oxide_InitResult oxide_init(const char *target_name);
extern void oxide_shutdown();
extern bool oxide_set_target(const char *target_name);
extern void oxide_begin_frame();
extern void oxide_end_frame();
typedef struct Oxide_WindowSize {
int width;
int height;
} Oxide_WindowSize;
extern Oxide_WindowSize oxide_resize();
#pragma once
#include <stdbool.h>
typedef enum Oxide_InitResult {
oxide_init_success,
oxide_init_window_failed,
oxide_init_gl_failed,
oxide_init_target_failed,
} Oxide_InitResult;
extern Oxide_InitResult oxide_init(const char *target_name);
extern void oxide_shutdown();
extern bool oxide_set_target(const char *target_name);
extern void oxide_begin_frame();
extern void oxide_end_frame();
typedef struct Oxide_WindowSize {
int width;
int height;
} Oxide_WindowSize;
extern Oxide_WindowSize oxide_resize();

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

View File

@ -1,47 +1,47 @@
#include "oxide_internal.h"
#include <stdint.h>
#define GLEW_STATIC
#include "GL/glew.h"
bool oxide_init_gl() {
oxide_init_os_gl();
glewInit();
glClearColor(0, 0, 0, 0);
return true;
}
Oxide_InitResult oxide_init(const char *target_name) {
bool window_success = oxide_init_window();
if (!window_success) {
return oxide_init_window_failed;
}
bool gl_success = oxide_init_gl();
if (!gl_success) {
return oxide_init_gl_failed;
}
if (!oxide_set_target(target_name)) {
return oxide_init_target_failed;
}
oxide_resize();
return oxide_init_success;
}
void oxide_shutdown() {
}
void oxide_begin_frame() {
oxide_begin_os_frame();
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
}
void oxide_end_frame() {
oxide_end_os_frame();
}
#include "oxide_internal.h"
#include <stdint.h>
#define GLEW_STATIC
#include "GL/glew.h"
bool oxide_init_gl() {
oxide_init_os_gl();
glewInit();
glClearColor(0, 0, 0, 0);
return true;
}
Oxide_InitResult oxide_init(const char *target_name) {
bool window_success = oxide_init_window();
if (!window_success) {
return oxide_init_window_failed;
}
bool gl_success = oxide_init_gl();
if (!gl_success) {
return oxide_init_gl_failed;
}
if (!oxide_set_target(target_name)) {
return oxide_init_target_failed;
}
oxide_resize();
return oxide_init_success;
}
void oxide_shutdown() {
}
void oxide_begin_frame() {
oxide_begin_os_frame();
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
}
void oxide_end_frame() {
oxide_end_os_frame();
}

View File

@ -1,9 +1,9 @@
#pragma once
#include "oxide.h"
extern void oxide_begin_os_frame();
extern void oxide_end_os_frame();
extern bool oxide_init_os_gl();
#pragma once
#include "oxide.h"
extern void oxide_begin_os_frame();
extern void oxide_end_os_frame();
extern bool oxide_init_os_gl();
extern bool oxide_init_window();