Static variables

@:native("GS_VERSION_MAJOR")staticversionMajor:Int

@:native("GS_VERSION_MINOR")staticversionMinor:Int

@:native("GS_VERSION_PATCH")staticversionPatch:Int

Static methods

@:native("gs_begin_render_pass")staticbeginRenderPass(list:GsCommandList, pass:GsRenderPass):Void

staticinlinebufferSetData(buffer:GsBuffer, data:GsManagedData):Void

staticinlinebufferSetPartialData(buffer:GsBuffer, data:GsManagedData, offset:Int):Void

@:has_untyped@:value({ a : 1, b : 0, g : 0, r : 0 })staticinlineclear(list:GsCommandList, flags:GsClearFlags, r:Float = 0, g:Float = 0, b:Float = 0, a:Float = 1):Void

@:native("gs_command_list_begin")staticcommandListBegin(list:GsCommandList):Void

@:native("gs_command_list_clear")staticcommandListClear(list:GsCommandList):Void

@:native("gs_command_list_end")staticcommandListEnd(list:GsCommandList):Void

@:native("gs_command_list_submit")staticcommandListSubmit(list:GsCommandList):Void

@:native("gs_copy_texture")staticcopyTexture(list:GsCommandList, src:GsTexture, dst:GsTexture):Void

@:native("gs_copy_texture_partial")staticcopyTexturePartial(list:GsCommandList, src:GsTexture, dst:GsTexture, srcX:Int, srcY:Int, dstX:Int, dstY:Int, width:Int, height:Int):Void

@:native("gs_create_backend")staticcreateBackend(type:GsBackendType):GsBackend

@:native("gs_create_buffer")staticcreateBuffer(type:GsBufferType, intent:GsBufferIntent):GsBuffer

@:native("gs_create_command_list")staticcreateCommandList():GsCommandList

@:native("gs_create_config")staticcreateConfig():GsConfig

@:native("gs_create_cubemap")staticcreateCubemap(width:Int, height:Int, format:GsTextureFormat, wrapS:GsTextureWrap, wrapT:GsTextureWrap, wrapR:GsTextureWrap, min:GsTextureFilter, mag:GsTextureFilter):GsTexture

@:native("gs_create_framebuffer")staticcreateFramebuffer(width:Int, height:Int):GsFramebuffer

@:native("gs_create_layout")staticcreateLayout():GsVtxLayout

@:native("gs_create_pipeline")staticcreatePipeline():GsPipeline

@:native("gs_create_program")staticcreateProgram():GsProgram

@:native("gs_create_render_pass")staticcreateRenderPass(fb:GsFramebuffer):GsRenderPass

@:native("gs_create_shader")staticcreateShader(type:GsShaderType, source:ConstCharStar):GsShader

@:native("gs_create_texture")staticcreateTexture(width:Int, height:Int, format:GsTextureFormat, wrapS:GsTextureWrap, wrapT:GsTextureWrap, min:GsTextureFilter, mag:GsTextureFilter):GsTexture

staticinlinecreateTextureSimple(width:Int, height:Int, format:GsTextureFormat):GsTexture

@:native("gs_destroy_backend")staticdestroyBackend(backend:GsBackend):Void

@:native("gs_destroy_buffer")staticdestroyBuffer(buffer:GsBuffer):Void

@:native("gs_destroy_command_list")staticdestroyCommandList(list:GsCommandList):Void

@:native("gs_destroy_config")staticdestroyConfig(config:GsConfig):Void

@:native("gs_destroy_framebuffer")staticdestroyFramebuffer(fb:GsFramebuffer):Void

@:native("gs_destroy_layout")staticdestroyLayout(layout:GsVtxLayout):Void

@:native("gs_destroy_pipeline")staticdestroyPipeline(pipeline:GsPipeline):Void

@:native("gs_destroy_program")staticdestroyProgram(program:GsProgram):Void

@:native("gs_destroy_render_pass")staticdestroyRenderPass(pass:GsRenderPass):Void

@:native("gs_destroy_shader")staticdestroyShader(shader:GsShader):Void

@:native("gs_destroy_texture")staticdestroyTexture(texture:GsTexture):Void

@:native("gs_destroy_unmanaged_buffer_data")staticdestroyUnmanagedBufferData(data:GsUnmanagedData):Void

@:native("gs_disable_scissor")staticdisableScissor(list:GsCommandList):Void

@:native("gs_discard_frame")staticdiscardFrame():Void

@:native("gs_draw_arrays")staticdrawArrays(list:GsCommandList, start:Int, count:Int):Void

@:native("gs_draw_indexed")staticdrawIndexed(list:GsCommandList, count:Int):Void

@:native("gs_end_render_pass")staticendRenderPass(list:GsCommandList):Void

@:native("gs_frame")staticframe():Void

@:native("gs_framebuffer_attach_texture")staticframebufferAttachTexture(fb:GsFramebuffer, texture:GsTexture, attachment:GsFramebufferAttachmentType):Void

@:native("gs_generate_mipmaps")staticgenerateMipmaps(list:GsCommandList, texture:GsTexture):Void

@:native("gs_get_optimal_backend_type")staticgetOptimalBackendType():GsBackendType

@:native("gs_get_uniform_location")staticgetUniformLocation(program:GsProgram, name:ConstCharStar):GsUniformLocation

staticinlinegetVersionString():String

@:native("gs_has_capability")statichasCapability(cap:GsCapability):Int

@:native("gs_init")staticinit(config:GsConfig):Bool

@:native("gs_layout_add")staticlayoutAdd(layout:GsVtxLayout, index:Int, type:GsVtxAttribType, count:Int):Bool

@:native("gs_layout_build")staticlayoutBuild(layout:GsVtxLayout):Void

@:native("gs_pipeline_set_layout")staticpipelineSetLayout(pipeline:GsPipeline, layout:GsVtxLayout):Void

@:native("gs_program_attach_shader")staticprogramAttachShader(program:GsProgram, shader:GsShader):Void

@:native("gs_program_build")staticprogramBuild(program:GsProgram):Void

@:native("gs_resolve_texture")staticresolveTexture(list:GsCommandList, src:GsTexture, dst:GsTexture):Void

@:native("gs_set_scissor")staticsetScissor(list:GsCommandList, x:Int, y:Int, width:Int, height:Int):Void

@:native("gs_set_viewport")staticsetViewport(list:GsCommandList, x:Int, y:Int, width:Int, height:Int):Void

@:native("gs_shutdown")staticshutdown():Void

staticinlinestartMainloop(fn:() ‑> Void):Void

@:native("gs_stop_mainloop")staticstopMainloop():Void

@:native("gs_texture_clear")statictextureClear(texture:GsTexture):Void

@:native("gs_texture_generate_mipmaps")statictextureGenerateMipmaps(texture:GsTexture):Void

staticinlinetextureSetData(texture:GsTexture, data:Bytes):Void

staticinlinetextureSetFaceData(texture:GsTexture, face:GsCubemapFace, data:Bytes):Void

@:native("gs_uniform_set_float")staticuniformSetFloat(list:GsCommandList, location:GsUniformLocation, value:Float32):Void

@:native("gs_uniform_set_int")staticuniformSetInt(list:GsCommandList, location:GsUniformLocation, value:Int):Void

@:native("gs_uniform_set_mat4")staticuniformSetMat4(list:GsCommandList, location:GsUniformLocation, m00:Float32, m01:Float32, m02:Float32, m03:Float32, m10:Float32, m11:Float32, m12:Float32, m13:Float32, m20:Float32, m21:Float32, m22:Float32, m23:Float32, m30:Float32, m31:Float32, m32:Float32, m33:Float32):Void

@:native("gs_uniform_set_vec2")staticuniformSetVec2(list:GsCommandList, location:GsUniformLocation, x:Float32, y:Float32):Void

@:native("gs_uniform_set_vec3")staticuniformSetVec3(list:GsCommandList, location:GsUniformLocation, x:Float32, y:Float32, z:Float32):Void

@:native("gs_uniform_set_vec4")staticuniformSetVec4(list:GsCommandList, location:GsUniformLocation, x:Float32, y:Float32, z:Float32, w:Float32):Void

@:native("gs_use_buffer")staticuseBuffer(list:GsCommandList, buffer:GsBuffer):Void

@:native("gs_use_pipeline")staticusePipeline(list:GsCommandList, pipeline:GsPipeline):Void

@:native("gs_use_texture")staticuseTexture(list:GsCommandList, texture:GsTexture, slot:Int):Void