MCPcopy Create free account
hub / github.com/defold/defold / RenderScript_GetWindowHeight

Function RenderScript_GetWindowHeight

engine/render/src/render/render_script.cpp:2654–2660  ·  view source on GitHub ↗

gets the actual window height * * Returns the actual physical window height. * Note that this value might differ from the logical height that is set in the * "game.project" settings. * * @name render.get_window_height * @return height [type:number] actual window height * @examples * * Get the actual height of the window * * ```lua *

Source from the content-addressed store, hash-verified

2652 * ```
2653 */
2654 static int RenderScript_GetWindowHeight(lua_State* L)
2655 {
2656 RenderScriptInstance* i = RenderScriptInstance_Check(L);
2657 (void)i;
2658 lua_pushnumber(L, dmGraphics::GetWindowHeight(i->m_RenderContext->m_GraphicsContext));
2659 return 1;
2660 }
2661
2662 /*# creates a new render predicate
2663 *

Callers

nothing calls this directly

Calls 3

lua_pushnumberFunction · 0.85
GetWindowHeightFunction · 0.50

Tested by

no test coverage detected