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
|
||||
compile_commands.json
|
||||
.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
|
||||
|
||||
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.
|
||||
|
@ -3,6 +3,5 @@
|
||||
echo creating projects...
|
||||
|
||||
premake5 vs2017
|
||||
premake5 export-compile-commands
|
||||
|
||||
echo finished.
|
@ -1,6 +1,5 @@
|
||||
echo creating projects...
|
||||
|
||||
./premake5 "gmake"
|
||||
./premake5 "export-compile-commands"
|
||||
|
||||
echo finished.
|
||||
|
@ -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.
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 <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();
|
||||
}
|
||||
|
@ -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();
|
Loading…
x
Reference in New Issue
Block a user