From gambas at ...1... Tue Dec 22 21:44:17 2015 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 22 Dec 2015 21:44:17 +0100 Subject: [Gambas-devel] Commit log format : README!! Message-ID: <5679B621.1010808@...1...> Hi, Until now, I have specified that commit log line lengths had to be less than 76 characters. This limit is not necessary anymore, so from now, this limit is removed, and commit log lines can now be as long as you want. Regards, -- Beno?t Minisini From gambas.fr at ...176... Thu Dec 24 00:02:03 2015 From: gambas.fr at ...176... (Fabien Bodard) Date: Thu, 24 Dec 2015 00:02:03 +0100 Subject: [Gambas-devel] Commit log format : README!! In-Reply-To: <5679B621.1010808@...1...> References: <5679B621.1010808@...1...> Message-ID: cool 2015-12-22 21:44 GMT+01:00 Beno?t Minisini : > Hi, > > Until now, I have specified that commit log line lengths had to be less > than 76 characters. > > This limit is not necessary anymore, so from now, this limit is removed, > and commit log lines can now be as long as you want. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel -- Fabien Bodard From gambas at ...1... Tue Dec 29 16:44:38 2015 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 29 Dec 2015 16:44:38 +0100 Subject: [Gambas-devel] Gl component In-Reply-To: References: <5681B5E5.6070802@...1...> Message-ID: <5682AA66.1030506@...1...> Le 29/12/2015 16:40, Martin Cristia a ?crit : > where to get the /trunk ? > > If there is a way of testing on my own computer on my 3.8.3 version > BEFORE updating the development version, I think will be better for all. > > (the makefile.am is a straightfoward file, I added my .h and .c the same > way the others are) > > Saludos Martin > Development is done through subversion. Read that: http://gambaswiki.org/wiki/howto/svn And then ask me questions if there is something you don't understand. P.S. We should talk about that on the developer mailing-list. Regards, -- Beno?t Minisini From tercoide at ...255... Wed Dec 30 17:08:40 2015 From: tercoide at ...255... (Martin Cristia) Date: Wed, 30 Dec 2015 13:08:40 -0300 Subject: [Gambas-devel] C component declaration Message-ID: How to declare arrays when making a component, ie :(C declaration in library)void glVertexPointer(GLint size, GLenum type, GLsize stride, const GLvoid*array) C gb component: GB_STATIC_METHOD( ......?? DECLARE_METHOD(.....? Saludos Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at ...176... Thu Dec 31 13:43:30 2015 From: taboege at ...176... (Tobias Boege) Date: Thu, 31 Dec 2015 13:43:30 +0100 Subject: [Gambas-devel] C component declaration In-Reply-To: References: Message-ID: <20151231124330.GA652@...693...> On Wed, 30 Dec 2015, Martin Cristia wrote: > How to declare arrays when making a component, ie :(C declaration in library)void glVertexPointer(GLint size, GLenum type, GLsize stride, const GLvoid*array) > C gb component: > GB_STATIC_METHOD( ......?? > > DECLARE_METHOD(.....? This is the response I gave you at gambas-user: On Wed, 30 Dec 2015, Tobias Boege wrote: > I'll tell you how I answer such questions for myself when I forgot the > details: think hard if any Gambas component has any class with a method > that returns an array object. If you're lucky there is such a component > which is written in C. Then look into its source code how it's done. > > In this case I remembered that gb.net.curl's HttpClient can return a > String[] of headers. You go to gb.net.curl/src/CHttpClient.c and find: > > GB_PROPERTY_READ("Headers", "String[]", HttpClient_Headers), > > that is you treat array types like every other class by writing the full > class name into the signature. Only the primitive data types have > abbreviations. I may add the following to specifically address your question: GB_METHOD("VertexPointer", NULL, your_function, "(Size)i(Type)i(Stride)i(Array)Object[];") The actual types ("i" for Integer, "Object[]" for an array of generic objects) may vary -- I don't know how OpenGL types translate to Gambas ones and guessed the values above. Your method may or may not need to be static. You may also want to read the article linked here[0] on native component development for Gambas. Regards, Tobi [0] http://www-e.uni-magdeburg.de/tboege/gambas/ -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Thu Dec 31 13:57:05 2015 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 31 Dec 2015 13:57:05 +0100 Subject: [Gambas-devel] C component declaration In-Reply-To: References: Message-ID: <56852621.8070105@...1...> Le 30/12/2015 17:08, Martin Cristia a ?crit : > How to declare arrays when making a component, ie : > (C declaration in library) > void glVertexPointer(GLint size, GLenum type, GLsize stride, const > GLvoid*array) > > C gb component: > > GB_STATIC_METHOD( ......?? > > > DECLARE_METHOD(.....? > > Saludos Martin > Please give details about glVertexPointer() : what it does, and what exactly is the array argument, as GLvoid * can points at anything. Regards, -- Beno?t Minisini