From 1ad72d5276b1876bf218336a1ff47f086a0834c9 Mon Sep 17 00:00:00 2001 From: scuri Date: Thu, 24 Jun 2010 20:32:39 +0000 Subject: *** empty log message *** --- html/en/func/init.html | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'html/en/func/init.html') diff --git a/html/en/func/init.html b/html/en/func/init.html index 17092c8..8b3bccb 100644 --- a/html/en/func/init.html +++ b/html/en/func/init.html @@ -11,7 +11,7 @@

Canvas Initialization

-
cdCanvas *cdCreateCanvas(cdContext* ctx, void *data); [in C]
+
cdCanvas *cdCreateCanvas(cdContext* ctx, void *data); [in C]
 
 cd.CreateCanvas(ctx: number, data: string or userdata) -> (canvas: cdCanvas) [in Lua]
@@ -33,6 +33,8 @@ cd.CreateCanvas(ctx: number, data: string or userdata) -> (canvas: cdCanvas)
  • CD_IUP = IUP Canvas (cdiup.h).
  • CD_NATIVEWINDOW = Native Window (cdnative.h).
  • +
  • CD_GL = Native + Window (cdgl.h).
  • @@ -77,7 +79,7 @@ cd.CreateCanvas(ctx: number, data: string or userdata) -> (canvas: cdCanvas) Metafile (cdwmf.h). Works only in MS Windows systems. -
    cdCanvas* cdCreateCanvasf(cdContext *ctx, const char* format, ...); [in C]
    +
    cdCanvas* cdCreateCanvasf(cdContext *ctx, const char* format, ...); [in C]
     
     [There is no equivalent in Lua]
    @@ -85,14 +87,14 @@ cd.CreateCanvas(ctx: number, data: string or userdata) -> (canvas: cdCanvas) data is a string composed by several parameters. This function can be used with parameters equivalent to the printf function from the default C library.

    -
    void cdKillCanvas(cdCanvas *canvas); [in C]
    +
    void cdKillCanvas(cdCanvas *canvas); [in C]
     
     cd.KillCanvas(canvas: cdCanvas) [in Lua]

    Destroys a previously created canvas. If this function is not called in Lua, the garbage collector will call it.

    -
    int cdCanvasActivate(cdCanvas *canvas); [in C]
    +
    int cdCanvasActivate(cdCanvas *canvas); [in C]
     
     canvas:Activate(canvas: cdCanvas) -> (status: number) [in Lua]
    @@ -102,7 +104,7 @@ canvas:Activate(canvas: cdCanvas) -> (status: number) [in Lua]
    canvas size has changed. In these cases the function MUST be called, for other drivers is useless. Returns CD_ERROR or CD_OK.

    -
    void cdCanvasDeactivate(cdCanvas* canvas); [in C]
    +
    void cdCanvasDeactivate(cdCanvas* canvas); [in C]
     
     canvas:Deactivate(canvas: cdCanvas) [in Lua]
    @@ -111,14 +113,14 @@ canvas:Deactivate(canvas: cdCanvas) [in Lua]
    can not be retained, the drawing can only be done again after a cdCanvasActivate. On some drivers will simply call Flush.

    -
    int cdUseContextPlus(int use); [in C]
    +
    int cdUseContextPlus(int use); [in C]
     
     cd.UseContextPlus(use: boolean) -> (old_use: boolean) [in Lua]

    Activates or deactivates the use of an external context for the next calls of the cdCreateCanvas function.

    -
    void cdInitContextPlus(void); [in C]
    +
    void cdInitContextPlus(void); [in C]
     
     cd.InitContextPlus() [in Lua]

    Initializes the context driver to use another context replacing the standard drivers. @@ -130,14 +132,13 @@ transparency.

    In Lua, when using require"cdluacontextplus" this function will be automatically called.

    -
    -
    cdContext* cdCanvasGetContext(cdCanvas *canvas); [in C]
    +

    cdContext* cdCanvasGetContext(cdCanvas *canvas); [in C]
     
     canvas:GetContext(canvas: cdCanvas) -> (ctx: number) [in Lua]

    Returns the context of a given canvas, which can be compared with the predefined contexts, such as "CD_PS".

    -
    int cdContextCaps(cdContext* ctx); [in C]
    +
    int cdContextCaps(cdContext* ctx); [in C]
     
     cd.ContextCaps(ctx: number) -> (caps: number) [in Lua]
    @@ -180,7 +181,7 @@ cd.ContextCaps(ctx: number) -> (caps: number) [in Lua]
    (Native Window and IUP).

    -
    int cdCanvasSimulate(cdCanvas* canvas, int mode); [in C]
    +
    int cdCanvasSimulate(cdCanvas* canvas, int mode); [in C]
     
     canvas:Simulate(mode: number) -> (old_mode: number) [in Lua]
    @@ -209,27 +210,27 @@ canvas:Simulate(mode: number) -> (old_mode: number) [in Lua]
    CD_SIM_FILLS - Combination of CD_SIM_BOX, CD_SIM_SECTOR, CD_SIM_CHORD and CD_SIM_POLYGON.

    - +

    Extras

    -
    int cdlua_open(lua_State* L); [for Lua 5]
    +
    int cdlua_open(lua_State* L); [for Lua 5]

    Initializes the CDLua binding. In Lua 5 the binding is lua state safe, this means that several states can be initialized any time.

    -
    int cdlua_close(lua_State* L); [for Lua 5]
    +
    int cdlua_close(lua_State* L); [for Lua 5]

    Releases the memory allocated by the CDLua binding.

    -
    cdCanvas* cdlua_checkcanvas(lua_State* L, int pos); [for Lua 5]
    +
    cdCanvas* cdlua_checkcanvas(lua_State* L, int pos); [for Lua 5]

    Returns the canvas in the Lua stack at position pos. The function will call lua_error if there is not a valid canvas in the stack at the given position.

    -
    void cdlua_pushcanvas(lua_State* L, cdCanvas* canvas);
    +
    void cdlua_pushcanvas(lua_State* L, cdCanvas* canvas);

    Pushes the given canvas into the stack.

    - +
    \ No newline at end of file -- cgit v1.2.3