render.window

Grimoire Copyright (c) 2017 Enalye

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.

Members

Enums

Fullscreen
enum Fullscreen
Undocumented in source.

Functions

createWindow
void createWindow(Vec2u windowSize, string title)
Undocumented in source. Be warned that the author may not have intended to support it.
destroyWindow
void destroyWindow()
Undocumented in source. Be warned that the author may not have intended to support it.
drawArrow
void drawArrow(Vec2f startPosition, Vec2f endPosition, Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawFilledRect
void drawFilledRect(Vec2f origin, Vec2f size, Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawLine
void drawLine(Vec2f startPosition, Vec2f endPosition, Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawPixel
void drawPixel(Vec2f position, Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawPoint
void drawPoint(Vec2f position, Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRect
void drawRect(Vec2f origin, Vec2f size, Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
enableAudio
void enableAudio(bool enable)
Undocumented in source. Be warned that the author may not have intended to support it.
getViewRenderPos
Vec2f getViewRenderPos(Vec2f pos)
Undocumented in source. Be warned that the author may not have intended to support it.
getViewScale
Vec2f getViewScale()
Undocumented in source. Be warned that the author may not have intended to support it.
getViewVirtualPos
Vec2f getViewVirtualPos(Vec2f pos, Vec2f renderPos)
Undocumented in source. Be warned that the author may not have intended to support it.
getViewVirtualPos
Vec2f getViewVirtualPos(Vec2f pos)
Undocumented in source. Be warned that the author may not have intended to support it.
isVisible
bool isVisible(Vec2f targetPosition, Vec2f targetSize)
Undocumented in source. Be warned that the author may not have intended to support it.
popView
void popView()
Undocumented in source. Be warned that the author may not have intended to support it.
pushView
void pushView(View view, bool clear)
Undocumented in source. Be warned that the author may not have intended to support it.
pushView
void pushView(QuadView quadView, bool clear)
Undocumented in source. Be warned that the author may not have intended to support it.
renderWindow
void renderWindow()
Undocumented in source. Be warned that the author may not have intended to support it.
setRenderColor
void setRenderColor(Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
setWindowBordered
void setWindowBordered(bool bordered)
Undocumented in source. Be warned that the author may not have intended to support it.
setWindowCursor
void setWindowCursor(Sprite cursorSprite)
Undocumented in source. Be warned that the author may not have intended to support it.
setWindowFullScreen
void setWindowFullScreen(Fullscreen fullscreen)
Undocumented in source. Be warned that the author may not have intended to support it.
setWindowIcon
void setWindowIcon(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
setWindowSize
void setWindowSize(Vec2u windowSize)
Undocumented in source. Be warned that the author may not have intended to support it.
setWindowTitle
void setWindowTitle(string title)
Undocumented in source. Be warned that the author may not have intended to support it.
showWindow
void showWindow(bool show)
Undocumented in source. Be warned that the author may not have intended to support it.
showWindowCursor
void showWindowCursor(bool show)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

centerScreen
Vec2f centerScreen [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
screenHeight
uint screenHeight [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
screenSize
Vec2f screenSize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
screenWidth
uint screenWidth [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

renderer
SDL_Renderer* renderer;
Undocumented in source.
window
SDL_Window* window;
Undocumented in source.
windowClearColor
Color windowClearColor;
Undocumented in source.

Meta