mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
112 lines
3.6 KiB
C++
112 lines
3.6 KiB
C++
/**
|
|
* Copyright (c) 2006-2011 LOVE Development Team
|
|
*
|
|
* This software is provided 'as-is', without any express or implied
|
|
* warranty. In no event will the authors be held liable for any damages
|
|
* arising from the use of this software.
|
|
*
|
|
* Permission is granted to anyone to use this software for any purpose,
|
|
* including commercial applications, and to alter it and redistribute it
|
|
* freely, subject to the following restrictions:
|
|
*
|
|
* 1. The origin of this software must not be misrepresented; you must not
|
|
* claim that you wrote the original software. If you use this software
|
|
* in a product, an acknowledgment in the product documentation would be
|
|
* appreciated but is not required.
|
|
* 2. Altered source versions must be plainly marked as such, and must not be
|
|
* misrepresented as being the original software.
|
|
* 3. This notice may not be removed or altered from any source distribution.
|
|
**/
|
|
|
|
#ifndef LOVE_GRAPHICS_OPENGL_WRAP_GRAPHICS_H
|
|
#define LOVE_GRAPHICS_OPENGL_WRAP_GRAPHICS_H
|
|
|
|
// LOVE
|
|
#include "wrap_Font.h"
|
|
#include "wrap_Image.h"
|
|
#include "wrap_Glyph.h"
|
|
#include "wrap_Quad.h"
|
|
#include "wrap_SpriteBatch.h"
|
|
#include "wrap_ParticleSystem.h"
|
|
#include "wrap_Framebuffer.h"
|
|
#include "Graphics.h"
|
|
|
|
namespace love
|
|
{
|
|
namespace graphics
|
|
{
|
|
namespace opengl
|
|
{
|
|
int w_checkMode(lua_State * L);
|
|
int w_setMode(lua_State * L);
|
|
int w_toggleFullscreen(lua_State * L);
|
|
int w_reset(lua_State * L);
|
|
int w_clear(lua_State * L);
|
|
int w_present(lua_State * L);
|
|
int w_setIcon(lua_State * L);
|
|
int w_setCaption(lua_State * L);
|
|
int w_getCaption(lua_State * L);
|
|
int w_getWidth(lua_State * L);
|
|
int w_getHeight(lua_State * L);
|
|
int w_isCreated(lua_State * L);
|
|
int w_setScissor(lua_State * L);
|
|
int w_getScissor(lua_State * L);
|
|
int w_newImage(lua_State * L);
|
|
int w_newGlyph(lua_State * L);
|
|
int w_newQuad(lua_State * L);
|
|
int w_newFrame(lua_State * L);
|
|
int w_newFont1(lua_State * L);
|
|
int w_newImageFont(lua_State * L);
|
|
int w_newSpriteBatch(lua_State * L);
|
|
int w_newParticleSystem(lua_State * L);
|
|
int w_newFramebuffer(lua_State * L); // commetns in function
|
|
int w_setColor(lua_State * L);
|
|
int w_getColor(lua_State * L);
|
|
int w_setBackgroundColor(lua_State * L);
|
|
int w_getBackgroundColor(lua_State * L);
|
|
int w_setFont1(lua_State * L);
|
|
int w_getFont(lua_State * L);
|
|
int w_setBlendMode(lua_State * L);
|
|
int w_setColorMode(lua_State * L);
|
|
int w_getBlendMode(lua_State * L);
|
|
int w_getColorMode(lua_State * L);
|
|
int w_setLineWidth(lua_State * L);
|
|
int w_setLineStyle(lua_State * L);
|
|
int w_setLine(lua_State * L);
|
|
int w_setLineStipple(lua_State * L);
|
|
int w_getLineWidth(lua_State * L);
|
|
int w_getLineStyle(lua_State * L);
|
|
int w_getLineStipple(lua_State * L);
|
|
int w_setPointSize(lua_State * L);
|
|
int w_setPointStyle(lua_State * L);
|
|
int w_setPoint(lua_State * L);
|
|
int w_getPointSize(lua_State * L);
|
|
int w_getPointStyle(lua_State * L);
|
|
int w_getMaxPointSize(lua_State * L);
|
|
int w_newScreenshot(lua_State * L);
|
|
int w_setRenderTarget(lua_State * L);
|
|
int w_draw(lua_State * L);
|
|
int w_drawq(lua_State * L);
|
|
int w_drawTest(lua_State * L);
|
|
int w_print1(lua_State * L);
|
|
int w_printf1(lua_State * L);
|
|
int w_point(lua_State * L);
|
|
int w_line(lua_State * L);
|
|
int w_triangle(lua_State * L);
|
|
int w_rectangle(lua_State * L);
|
|
int w_quad(lua_State * L);
|
|
int w_circle(lua_State * L);
|
|
int w_push(lua_State * L);
|
|
int w_pop(lua_State * L);
|
|
int w_rotate(lua_State * L);
|
|
int w_scale(lua_State * L);
|
|
int w_translate(lua_State * L);
|
|
int w_hasFocus(lua_State * L);
|
|
extern "C" LOVE_EXPORT int luaopen_love_graphics(lua_State * L);
|
|
|
|
} // opengl
|
|
} // graphics
|
|
} // love
|
|
|
|
#endif // LOVE_GRAPHICS_OPENGL_WRAP_GRAPHICS_H
|