wrap_Graphics.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /**
  2. * Copyright (c) 2006-2013 LOVE Development Team
  3. *
  4. * This software is provided 'as-is', without any express or implied
  5. * warranty. In no event will the authors be held liable for any damages
  6. * arising from the use of this software.
  7. *
  8. * Permission is granted to anyone to use this software for any purpose,
  9. * including commercial applications, and to alter it and redistribute it
  10. * freely, subject to the following restrictions:
  11. *
  12. * 1. The origin of this software must not be misrepresented; you must not
  13. * claim that you wrote the original software. If you use this software
  14. * in a product, an acknowledgment in the product documentation would be
  15. * appreciated but is not required.
  16. * 2. Altered source versions must be plainly marked as such, and must not be
  17. * misrepresented as being the original software.
  18. * 3. This notice may not be removed or altered from any source distribution.
  19. **/
  20. #ifndef LOVE_GRAPHICS_OPENGL_WRAP_GRAPHICS_H
  21. #define LOVE_GRAPHICS_OPENGL_WRAP_GRAPHICS_H
  22. // LOVE
  23. #include "wrap_Font.h"
  24. #include "wrap_Image.h"
  25. #include "wrap_Quad.h"
  26. #include "wrap_SpriteBatch.h"
  27. #include "wrap_ParticleSystem.h"
  28. #include "wrap_Canvas.h"
  29. #include "wrap_Shader.h"
  30. #include "wrap_Mesh.h"
  31. #include "Graphics.h"
  32. namespace love
  33. {
  34. namespace graphics
  35. {
  36. namespace opengl
  37. {
  38. int w_reset(lua_State *L);
  39. int w_clear(lua_State *L);
  40. int w_present(lua_State *L);
  41. int w_isCreated(lua_State *L);
  42. int w_getWidth(lua_State *L);
  43. int w_getHeight(lua_State *L);
  44. int w_getDimensions(lua_State *L);
  45. int w_setScissor(lua_State *L);
  46. int w_getScissor(lua_State *L);
  47. int w_setStencil(lua_State *L);
  48. int w_getMaxImageSize(lua_State *L);
  49. int w_newImage(lua_State *L);
  50. int w_newQuad(lua_State *L);
  51. int w_newFont(lua_State *L);
  52. int w_newImageFont(lua_State *L);
  53. int w_newSpriteBatch(lua_State *L);
  54. int w_newParticleSystem(lua_State *L);
  55. int w_newCanvas(lua_State *L); // comments in function
  56. int w_newShader(lua_State *L);
  57. int w_newMesh(lua_State *L);
  58. int w_setColor(lua_State *L);
  59. int w_getColor(lua_State *L);
  60. int w_setBackgroundColor(lua_State *L);
  61. int w_getBackgroundColor(lua_State *L);
  62. int w_setFont(lua_State *L);
  63. int w_getFont(lua_State *L);
  64. int w_setColorMask(lua_State *L);
  65. int w_getColorMask(lua_State *L);
  66. int w_setBlendMode(lua_State *L);
  67. int w_getBlendMode(lua_State *L);
  68. int w_setDefaultFilter(lua_State *L);
  69. int w_getDefaultFilter(lua_State *L);
  70. int w_setDefaultMipmapFilter(lua_State *L);
  71. int w_getDefaultMipmapFilter(lua_State *L);
  72. int w_setLineWidth(lua_State *L);
  73. int w_setLineStyle(lua_State *L);
  74. int w_setLineJoin(lua_State *L);
  75. int w_getLineWidth(lua_State *L);
  76. int w_getLineStyle(lua_State *L);
  77. int w_getLineJoin(lua_State *L);
  78. int w_setPointSize(lua_State *L);
  79. int w_setPointStyle(lua_State *L);
  80. int w_getPointSize(lua_State *L);
  81. int w_getPointStyle(lua_State *L);
  82. int w_getMaxPointSize(lua_State *L);
  83. int w_newScreenshot(lua_State *L);
  84. int w_setCanvas(lua_State *L);
  85. int w_getCanvas(lua_State *L);
  86. int w_setShader(lua_State *L);
  87. int w_getShader(lua_State *L);
  88. int w_isSupported(lua_State *L);
  89. int w_getRendererInfo(lua_State *L);
  90. int w_draw(lua_State *L);
  91. int w_print(lua_State *L);
  92. int w_printf(lua_State *L);
  93. int w_point(lua_State *L);
  94. int w_line(lua_State *L);
  95. int w_rectangle(lua_State *L);
  96. int w_circle(lua_State *L);
  97. int w_arc(lua_State *L);
  98. int w_push(lua_State *L);
  99. int w_pop(lua_State *L);
  100. int w_rotate(lua_State *L);
  101. int w_scale(lua_State *L);
  102. int w_translate(lua_State *L);
  103. int w_shear(lua_State *L);
  104. int w_origin(lua_State *L);
  105. extern "C" LOVE_EXPORT int luaopen_love_graphics(lua_State *L);
  106. } // opengl
  107. } // graphics
  108. } // love
  109. #endif // LOVE_GRAPHICS_OPENGL_WRAP_GRAPHICS_H