mirror of https://github.com/bjornbytes/lovr.git
Rename lovr to api;
This commit is contained in:
parent
b84f72f17e
commit
fa74254e64
|
@ -1,5 +1,5 @@
|
||||||
#include "lovr/audio.h"
|
#include "api/audio.h"
|
||||||
#include "lovr/types/source.h"
|
#include "api/types/source.h"
|
||||||
#include "audio/audio.h"
|
#include "audio/audio.h"
|
||||||
#include "audio/source.h"
|
#include "audio/source.h"
|
||||||
#include "loaders/source.h"
|
#include "loaders/source.h"
|
|
@ -1,4 +1,4 @@
|
||||||
#include "lovr/event.h"
|
#include "api/event.h"
|
||||||
#include "event/event.h"
|
#include "event/event.h"
|
||||||
|
|
||||||
static int pollRef;
|
static int pollRef;
|
|
@ -1,4 +1,4 @@
|
||||||
#include "lovr/filesystem.h"
|
#include "api/filesystem.h"
|
||||||
#include "filesystem/filesystem.h"
|
#include "filesystem/filesystem.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
|
@ -1,11 +1,11 @@
|
||||||
#include "lovr/graphics.h"
|
#include "api/graphics.h"
|
||||||
#include "lovr/types/buffer.h"
|
#include "api/types/buffer.h"
|
||||||
#include "lovr/types/font.h"
|
#include "api/types/font.h"
|
||||||
#include "lovr/types/model.h"
|
#include "api/types/model.h"
|
||||||
#include "lovr/types/shader.h"
|
#include "api/types/shader.h"
|
||||||
#include "lovr/types/skybox.h"
|
#include "api/types/skybox.h"
|
||||||
#include "lovr/types/texture.h"
|
#include "api/types/texture.h"
|
||||||
#include "lovr/types/transform.h"
|
#include "api/types/transform.h"
|
||||||
#include "graphics/graphics.h"
|
#include "graphics/graphics.h"
|
||||||
#include "loaders/font.h"
|
#include "loaders/font.h"
|
||||||
#include "loaders/model.h"
|
#include "loaders/model.h"
|
|
@ -1,5 +1,5 @@
|
||||||
#include "lovr/headset.h"
|
#include "api/headset.h"
|
||||||
#include "lovr/types/controller.h"
|
#include "api/types/controller.h"
|
||||||
#include "headset/headset.h"
|
#include "headset/headset.h"
|
||||||
|
|
||||||
static void renderHelper(HeadsetEye eye, void* userdata) {
|
static void renderHelper(HeadsetEye eye, void* userdata) {
|
|
@ -1,5 +1,5 @@
|
||||||
#include "lovr/math.h"
|
#include "api/math.h"
|
||||||
#include "lovr/types/transform.h"
|
#include "api/types/transform.h"
|
||||||
#include "math/mat4.h"
|
#include "math/mat4.h"
|
||||||
|
|
||||||
const luaL_Reg lovrMath[] = {
|
const luaL_Reg lovrMath[] = {
|
|
@ -1,4 +1,4 @@
|
||||||
#include "lovr/timer.h"
|
#include "api/timer.h"
|
||||||
#include "timer/timer.h"
|
#include "timer/timer.h"
|
||||||
|
|
||||||
const luaL_Reg lovrTimer[] = {
|
const luaL_Reg lovrTimer[] = {
|
|
@ -1,7 +1,7 @@
|
||||||
#include "lovr/types/buffer.h"
|
#include "api/types/buffer.h"
|
||||||
#include "lovr/types/texture.h"
|
#include "api/types/texture.h"
|
||||||
#include "lovr/types/transform.h"
|
#include "api/types/transform.h"
|
||||||
#include "lovr/graphics.h"
|
#include "api/graphics.h"
|
||||||
|
|
||||||
void luax_checkbufferformat(lua_State* L, int index, BufferFormat* format) {
|
void luax_checkbufferformat(lua_State* L, int index, BufferFormat* format) {
|
||||||
if (!lua_istable(L, index)) {
|
if (!lua_istable(L, index)) {
|
|
@ -1,5 +1,5 @@
|
||||||
#include "lovr/types/controller.h"
|
#include "api/types/controller.h"
|
||||||
#include "lovr/headset.h"
|
#include "api/headset.h"
|
||||||
#include "loaders/model.h"
|
#include "loaders/model.h"
|
||||||
#include "loaders/texture.h"
|
#include "loaders/texture.h"
|
||||||
#include "graphics/model.h"
|
#include "graphics/model.h"
|
|
@ -1,4 +1,4 @@
|
||||||
#include "lovr/types/font.h"
|
#include "api/types/font.h"
|
||||||
|
|
||||||
const luaL_Reg lovrFont[] = {
|
const luaL_Reg lovrFont[] = {
|
||||||
{ "getLineHeight", l_lovrFontGetLineHeight },
|
{ "getLineHeight", l_lovrFontGetLineHeight },
|
|
@ -1,6 +1,6 @@
|
||||||
#include "lovr/types/model.h"
|
#include "api/types/model.h"
|
||||||
#include "lovr/types/texture.h"
|
#include "api/types/texture.h"
|
||||||
#include "lovr/types/transform.h"
|
#include "api/types/transform.h"
|
||||||
|
|
||||||
const luaL_Reg lovrModel[] = {
|
const luaL_Reg lovrModel[] = {
|
||||||
{ "draw", l_lovrModelDraw },
|
{ "draw", l_lovrModelDraw },
|
|
@ -1,4 +1,4 @@
|
||||||
#include "lovr/types/shader.h"
|
#include "api/types/shader.h"
|
||||||
#include "math/transform.h"
|
#include "math/transform.h"
|
||||||
|
|
||||||
const luaL_Reg lovrShader[] = {
|
const luaL_Reg lovrShader[] = {
|
|
@ -1,4 +1,4 @@
|
||||||
#include "lovr/types/skybox.h"
|
#include "api/types/skybox.h"
|
||||||
#include "graphics/graphics.h"
|
#include "graphics/graphics.h"
|
||||||
|
|
||||||
const luaL_Reg lovrSkybox[] = {
|
const luaL_Reg lovrSkybox[] = {
|
|
@ -1,5 +1,5 @@
|
||||||
#include "lovr/types/source.h"
|
#include "api/types/source.h"
|
||||||
#include "lovr/audio.h"
|
#include "api/audio.h"
|
||||||
#include "audio/audio.h"
|
#include "audio/audio.h"
|
||||||
|
|
||||||
const luaL_Reg lovrSource[] = {
|
const luaL_Reg lovrSource[] = {
|
|
@ -1,5 +1,5 @@
|
||||||
#include "lovr/types/texture.h"
|
#include "api/types/texture.h"
|
||||||
#include "lovr/graphics.h"
|
#include "api/graphics.h"
|
||||||
#include "graphics/graphics.h"
|
#include "graphics/graphics.h"
|
||||||
|
|
||||||
const luaL_Reg lovrTexture[] = {
|
const luaL_Reg lovrTexture[] = {
|
|
@ -1,4 +1,4 @@
|
||||||
#include "lovr/types/transform.h"
|
#include "api/types/transform.h"
|
||||||
#include "math/mat4.h"
|
#include "math/mat4.h"
|
||||||
|
|
||||||
void luax_readtransform(lua_State* L, int i, mat4 m) {
|
void luax_readtransform(lua_State* L, int i, mat4 m) {
|
14
src/lovr.c
14
src/lovr.c
|
@ -1,11 +1,11 @@
|
||||||
#include "lovr.h"
|
#include "lovr.h"
|
||||||
#include "lovr/audio.h"
|
#include "api/audio.h"
|
||||||
#include "lovr/event.h"
|
#include "api/event.h"
|
||||||
#include "lovr/filesystem.h"
|
#include "api/filesystem.h"
|
||||||
#include "lovr/graphics.h"
|
#include "api/graphics.h"
|
||||||
#include "lovr/headset.h"
|
#include "api/headset.h"
|
||||||
#include "lovr/math.h"
|
#include "api/math.h"
|
||||||
#include "lovr/timer.h"
|
#include "api/timer.h"
|
||||||
#include "glfw.h"
|
#include "glfw.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
Loading…
Reference in New Issue