Removed redundant graphics funcs and graphics.h
This commit is contained in:
@@ -12,7 +12,6 @@ luaobj.c | Helper functions for lua udata objects
|
|||||||
love.c | The core `love` module
|
love.c | The core `love` module
|
||||||
system.c | `love.system` module
|
system.c | `love.system` module
|
||||||
timer.c | `love.timer` module
|
timer.c | `love.timer` module
|
||||||
graphics.h | `love.graphics` prototype and typedefs
|
|
||||||
graphics.c | `love.graphics` module
|
graphics.c | `love.graphics` module
|
||||||
keyboard.h | `love.keyboard` prototype and typedefs
|
keyboard.h | `love.keyboard` prototype and typedefs
|
||||||
keyboard.c | `love.keyboard` module and keyboard interrupt handling
|
keyboard.c | `love.keyboard` module and keyboard interrupt handling
|
||||||
|
|||||||
@@ -26,19 +26,6 @@ int graphics_flip = 0;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void graphics_init(void) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void graphics_deinit(void) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Lua binds
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
int l_graphics_getDimensions(lua_State *L) {
|
int l_graphics_getDimensions(lua_State *L) {
|
||||||
lua_pushinteger(L, graphics_screen->width);
|
lua_pushinteger(L, graphics_screen->width);
|
||||||
lua_pushinteger(L, graphics_screen->height);
|
lua_pushinteger(L, graphics_screen->height);
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) 2014 rxi
|
|
||||||
*
|
|
||||||
* This library is free software; you can redistribute it and/or modify it
|
|
||||||
* under the terms of the MIT license. See LICENSE for details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef GRAPHICS_H
|
|
||||||
#define GRAPHICS_H
|
|
||||||
|
|
||||||
void graphics_init(void);
|
|
||||||
void graphics_deinit(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -14,7 +14,6 @@
|
|||||||
#include "lib/dmt/dmt.h"
|
#include "lib/dmt/dmt.h"
|
||||||
#include "vga.h"
|
#include "vga.h"
|
||||||
#include "luaobj.h"
|
#include "luaobj.h"
|
||||||
#include "graphics.h"
|
|
||||||
#include "keyboard.h"
|
#include "keyboard.h"
|
||||||
#include "image.h"
|
#include "image.h"
|
||||||
|
|
||||||
@@ -24,7 +23,6 @@ static lua_State *L;
|
|||||||
static void deinit(void) {
|
static void deinit(void) {
|
||||||
/* Deinit and clear up everything. Called at exit */
|
/* Deinit and clear up everything. Called at exit */
|
||||||
vga_deinit();
|
vga_deinit();
|
||||||
graphics_deinit();
|
|
||||||
keyboard_deinit();
|
keyboard_deinit();
|
||||||
lua_close(L);
|
lua_close(L);
|
||||||
dmt_dump(stdout);
|
dmt_dump(stdout);
|
||||||
@@ -38,7 +36,6 @@ int main(void) {
|
|||||||
/* Init everything */
|
/* Init everything */
|
||||||
atexit(deinit);
|
atexit(deinit);
|
||||||
vga_init();
|
vga_init();
|
||||||
graphics_init();
|
|
||||||
keyboard_init();
|
keyboard_init();
|
||||||
|
|
||||||
/* Init lua */
|
/* Init lua */
|
||||||
|
|||||||
Reference in New Issue
Block a user