mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
Add documentation for CreateCurrentContextById and SetCurrentContextById
This commit is contained in:
Vendored
+5
-2
@@ -29,9 +29,12 @@ DEFAULT_CONTEXT_ATTRIBUTES :: ContextAttributes{}
|
|||||||
|
|
||||||
@(default_calling_convention="c")
|
@(default_calling_convention="c")
|
||||||
foreign webgl {
|
foreign webgl {
|
||||||
CreateCurrentContextById :: proc(name: string, attributes := DEFAULT_CONTEXT_ATTRIBUTES) -> bool ---
|
// CreateCurrentContextById must be called before `GetCurrentContextAttributes` if the user wants to
|
||||||
GetCurrentContextAttributes :: proc() -> ContextAttributes ---
|
// set specific attributes, otherwise the default attributes will be set for the WebGL context
|
||||||
|
CreateCurrentContextById :: proc(name: string, attributes: ContextAttributes) -> bool ---
|
||||||
|
// Acquire the WebGL context from a canvas element by id
|
||||||
SetCurrentContextById :: proc(name: string) -> bool ---
|
SetCurrentContextById :: proc(name: string) -> bool ---
|
||||||
|
GetCurrentContextAttributes :: proc() -> ContextAttributes ---
|
||||||
|
|
||||||
DrawingBufferWidth :: proc() -> i32 ---
|
DrawingBufferWidth :: proc() -> i32 ---
|
||||||
DrawingBufferHeight :: proc() -> i32 ---
|
DrawingBufferHeight :: proc() -> i32 ---
|
||||||
|
|||||||
Reference in New Issue
Block a user