Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 22-Nov-2010 23:05:02

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

How to add new Scol functions

Hi,

Nodrev wrote a template in C++.

I wrote three examples in C :

  • First :: simple :: very simple function, api definition and load it;

  • Second :: medium :: use strings, tuples and lists;

  • Third :: complex :: add a new Scol type, create / destroy a Scol object, define and call a callback; include libcurl library.

These examples are provided "as it" ...

have phun ! smile
iri

Offline

#2 22-Nov-2010 23:15:13

Nodrev
Scol Language & OS3D developer
From: Nantes, France
Registered: 29-Dec-2009
Posts: 197

Re: How to add new Scol functions

For the c++ template, i wrote a tutorial explaining point after point each function, but in french... and on our local wiki.
I'll try to take some time this week to commit html pages in the template dir.

nb that this code is windows only, Iri way is better wink

Offline

#3 22-Nov-2010 23:17:24

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: How to add new Scol functions

Excellent !

just a comment about the commentaries smile
a Doxygen style should be great !

can you commit them on the svn trunk ?
maybe creating an templates folder in plugins then we could concentrate all templates here

Offline

Board footer

Powered by FluxBB