Re: [Factor-talk] OpenGL3.0+
Examples https://github.com/George66/Factor/tree/main/OpenGL3.2%2B%20examples пт, 21 мая 2021 г. в 23:26, George Cherevichenko < george.chereviche...@gmail.com>: > Is there an example? A rotating triangle would be enough. > > George > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] OpenGL3.0+
A simple example with matrices https://pastebin.com/5S5Lf17E George ср, 2 июн. 2021 г. в 03:53, George Cherevichenko < george.chereviche...@gmail.com>: > A problem. In OpenGL3.0+ we have to sent a matrix to a shader > float matrix[ ] = {any-16-elements-array}; > glUniformMatrix4fv(... , matrix); > I try to do the same in Factor > {any-16-elements-array} alien.c-types:float >c-array glUniformMatrix4fv > and get an OpenGL error. Then I try > {any-16-elements-array} alien.c-types:float >c-array >c-ptr > glUniformMatrix4fv > and get an OpenGL error too. > > George > > > вт, 1 июн. 2021 г. в 23:21, George Cherevichenko < > george.chereviche...@gmail.com>: > >> How to turn a Factor's 4X4 matrix to C array (I need a pointer float*) in >> column-major order? >> https://en.wikipedia.org/wiki/Row-_and_column-major_order >> Thank you. >> >> George >> >> сб, 29 мая 2021 г. в 21:37, George Cherevichenko < >> george.chereviche...@gmail.com>: >> >>> Simple examples without matrices. >>> Triangle with glDrawArrays >>> https://pastebin.com/QNgGuM2B >>> Rectangle with glDrawElements >>> https://pastebin.com/cxDvwyqj >>> >>> George >>> >>> сб, 29 мая 2021 г. в 02:56, : >>> "Generic word my-tuple-field<< does not define a method for the fixnum class. Dispatching on object: 1" What does it mean? It means you called `1 obj >>my-tuple-field` instead of `obj 1 >>my-tuple-field`. ‐‐‐ Original Message ‐‐‐ On Saturday, May 29th, 2021 at 1:47 AM, George Cherevichenko - george.chereviche...@gmail.com wrote: "Generic word my-tuple-field<< does not define a method for the fixnum class. Dispatching on object: 1" What does it mean? Now I can draw with glDrawArrays. George сб, 22 мая 2021 г. в 17:16, Ken Causey : > First I should be clear that I claim no special knowledge. I'm more > of an interested observer and occasional dabbler with Factor. > > However, a quick grep turned up these areas that may help further at > least in the form of example code: > > https://github.com/factor/factor/tree/master/basis/opengl > https://github.com/factor/factor/tree/master/extra/bunny > https://github.com/factor/factor/tree/master/extra/cuda > https://github.com/factor/factor/tree/master/extra/gpu > https://github.com/factor/factor/tree/master/extra/grid-meshes > https://github.com/factor/factor/tree/master/extra/model-viewer > > On Sat, May 22, 2021 at 8:01 AM George Cherevichenko < > george.chereviche...@gmail.com> wrote: > >> There are three lines of the code which I cannot write in Factor >> >> glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, >> GL_STATIC_DRAW); >> glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(GLfloat), >> (GLvoid*)0); >> glEnableVertexAttribArray(0); >> >> I wanted to use "with-gl-buffer" or "with-vertex-array" from Factor's >> opengl vocabulary. Are there examples of using these commands? >> >> George >> >> >> >> >> >> >> сб, 22 мая 2021 г. в 00:46, Doug Coleman : >> >>> It's just C ffi calls right? >>> >>> On Fri, May 21, 2021 at 4:38 PM George Cherevichenko < >>> george.chereviche...@gmail.com> wrote: >>> It is VERY outdated. I need OpenGL3.0+ https://learnopengl.com/code_viewer.php?code=getting-started/hellotriangle https://hsto.org/files/709/5ad/69c/7095ad69c2a5431083ec84dc25b35cdb.png George пт, 21 мая 2021 г. в 23:42, Ken Causey : > https://github.com/factor/factor/tree/master/extra/nehe > > On Fri, May 21, 2021 at 3:27 PM George Cherevichenko < > george.chereviche...@gmail.com> wrote: > >> Is there an example? A rotating triangle would be enough. >> >> George >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk >>> ___ >>> Factor-talk mailing list >>> Factor-talk@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/factor-talk >>> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >>
Re: [Factor-talk] OpenGL3.0+
A problem. In OpenGL3.0+ we have to sent a matrix to a shader float matrix[ ] = {any-16-elements-array}; glUniformMatrix4fv(... , matrix); I try to do the same in Factor {any-16-elements-array} alien.c-types:float >c-array glUniformMatrix4fv and get an OpenGL error. Then I try {any-16-elements-array} alien.c-types:float >c-array >c-ptr glUniformMatrix4fv and get an OpenGL error too. George вт, 1 июн. 2021 г. в 23:21, George Cherevichenko < george.chereviche...@gmail.com>: > How to turn a Factor's 4X4 matrix to C array (I need a pointer float*) in > column-major order? > https://en.wikipedia.org/wiki/Row-_and_column-major_order > Thank you. > > George > > сб, 29 мая 2021 г. в 21:37, George Cherevichenko < > george.chereviche...@gmail.com>: > >> Simple examples without matrices. >> Triangle with glDrawArrays >> https://pastebin.com/QNgGuM2B >> Rectangle with glDrawElements >> https://pastebin.com/cxDvwyqj >> >> George >> >> сб, 29 мая 2021 г. в 02:56, : >> >>> "Generic word my-tuple-field<< does not define a method for the fixnum >>> class. Dispatching on object: 1" >>> What does it mean? >>> >>> >>> It means you called `1 obj >>my-tuple-field` instead of `obj 1 >>> >>my-tuple-field`. >>> >>> ‐‐‐ Original Message ‐‐‐ >>> On Saturday, May 29th, 2021 at 1:47 AM, George Cherevichenko - >>> george.chereviche...@gmail.com >>> >>> wrote: >>> >>> "Generic word my-tuple-field<< does not define a method for the fixnum >>> class. Dispatching on object: 1" >>> What does it mean? >>> Now I can draw with glDrawArrays. >>> >>> George >>> >>> сб, 22 мая 2021 г. в 17:16, Ken Causey : >>> First I should be clear that I claim no special knowledge. I'm more of an interested observer and occasional dabbler with Factor. However, a quick grep turned up these areas that may help further at least in the form of example code: https://github.com/factor/factor/tree/master/basis/opengl https://github.com/factor/factor/tree/master/extra/bunny https://github.com/factor/factor/tree/master/extra/cuda https://github.com/factor/factor/tree/master/extra/gpu https://github.com/factor/factor/tree/master/extra/grid-meshes https://github.com/factor/factor/tree/master/extra/model-viewer On Sat, May 22, 2021 at 8:01 AM George Cherevichenko < george.chereviche...@gmail.com> wrote: > There are three lines of the code which I cannot write in Factor > > glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); > glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(GLfloat), > (GLvoid*)0); > glEnableVertexAttribArray(0); > > I wanted to use "with-gl-buffer" or "with-vertex-array" from Factor's > opengl vocabulary. Are there examples of using these commands? > > George > > > > > > > сб, 22 мая 2021 г. в 00:46, Doug Coleman : > >> It's just C ffi calls right? >> >> On Fri, May 21, 2021 at 4:38 PM George Cherevichenko < >> george.chereviche...@gmail.com> wrote: >> >>> It is VERY outdated. I need OpenGL3.0+ >>> >>> https://learnopengl.com/code_viewer.php?code=getting-started/hellotriangle >>> >>> https://hsto.org/files/709/5ad/69c/7095ad69c2a5431083ec84dc25b35cdb.png >>> >>> George >>> >>> пт, 21 мая 2021 г. в 23:42, Ken Causey : >>> https://github.com/factor/factor/tree/master/extra/nehe On Fri, May 21, 2021 at 3:27 PM George Cherevichenko < george.chereviche...@gmail.com> wrote: > Is there an example? A rotating triangle would be enough. > > George > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk >>> ___ >>> Factor-talk mailing list >>> Factor-talk@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/factor-talk >>> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk >>> >>> ___ >>> Factor-talk mailing list >>>
Re: [Factor-talk] OpenGL3.0+
How to turn a Factor's 4X4 matrix to C array (I need a pointer float*) in column-major order? https://en.wikipedia.org/wiki/Row-_and_column-major_order Thank you. George сб, 29 мая 2021 г. в 21:37, George Cherevichenko < george.chereviche...@gmail.com>: > Simple examples without matrices. > Triangle with glDrawArrays > https://pastebin.com/QNgGuM2B > Rectangle with glDrawElements > https://pastebin.com/cxDvwyqj > > George > > сб, 29 мая 2021 г. в 02:56, : > >> "Generic word my-tuple-field<< does not define a method for the fixnum >> class. Dispatching on object: 1" >> What does it mean? >> >> >> It means you called `1 obj >>my-tuple-field` instead of `obj 1 >> >>my-tuple-field`. >> >> ‐‐‐ Original Message ‐‐‐ >> On Saturday, May 29th, 2021 at 1:47 AM, George Cherevichenko - >> george.chereviche...@gmail.com >> wrote: >> >> "Generic word my-tuple-field<< does not define a method for the fixnum >> class. Dispatching on object: 1" >> What does it mean? >> Now I can draw with glDrawArrays. >> >> George >> >> сб, 22 мая 2021 г. в 17:16, Ken Causey : >> >>> First I should be clear that I claim no special knowledge. I'm more of >>> an interested observer and occasional dabbler with Factor. >>> >>> However, a quick grep turned up these areas that may help further at >>> least in the form of example code: >>> >>> https://github.com/factor/factor/tree/master/basis/opengl >>> https://github.com/factor/factor/tree/master/extra/bunny >>> https://github.com/factor/factor/tree/master/extra/cuda >>> https://github.com/factor/factor/tree/master/extra/gpu >>> https://github.com/factor/factor/tree/master/extra/grid-meshes >>> https://github.com/factor/factor/tree/master/extra/model-viewer >>> >>> On Sat, May 22, 2021 at 8:01 AM George Cherevichenko < >>> george.chereviche...@gmail.com> wrote: >>> There are three lines of the code which I cannot write in Factor glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(GLfloat), (GLvoid*)0); glEnableVertexAttribArray(0); I wanted to use "with-gl-buffer" or "with-vertex-array" from Factor's opengl vocabulary. Are there examples of using these commands? George сб, 22 мая 2021 г. в 00:46, Doug Coleman : > It's just C ffi calls right? > > On Fri, May 21, 2021 at 4:38 PM George Cherevichenko < > george.chereviche...@gmail.com> wrote: > >> It is VERY outdated. I need OpenGL3.0+ >> >> https://learnopengl.com/code_viewer.php?code=getting-started/hellotriangle >> >> https://hsto.org/files/709/5ad/69c/7095ad69c2a5431083ec84dc25b35cdb.png >> >> George >> >> пт, 21 мая 2021 г. в 23:42, Ken Causey : >> >>> https://github.com/factor/factor/tree/master/extra/nehe >>> >>> On Fri, May 21, 2021 at 3:27 PM George Cherevichenko < >>> george.chereviche...@gmail.com> wrote: >>> Is there an example? A rotating triangle would be enough. George ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk >>> ___ >>> Factor-talk mailing list >>> Factor-talk@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/factor-talk >>> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk >>> ___ >>> Factor-talk mailing list >>> Factor-talk@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/factor-talk >>> >> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] OpenGL3.0+
Simple examples without matrices. Triangle with glDrawArrays https://pastebin.com/QNgGuM2B Rectangle with glDrawElements https://pastebin.com/cxDvwyqj George сб, 29 мая 2021 г. в 02:56, : > "Generic word my-tuple-field<< does not define a method for the fixnum > class. Dispatching on object: 1" > What does it mean? > > > It means you called `1 obj >>my-tuple-field` instead of `obj 1 > >>my-tuple-field`. > > ‐‐‐ Original Message ‐‐‐ > On Saturday, May 29th, 2021 at 1:47 AM, George Cherevichenko - > george.chereviche...@gmail.com > wrote: > > "Generic word my-tuple-field<< does not define a method for the fixnum > class. Dispatching on object: 1" > What does it mean? > Now I can draw with glDrawArrays. > > George > > сб, 22 мая 2021 г. в 17:16, Ken Causey : > >> First I should be clear that I claim no special knowledge. I'm more of >> an interested observer and occasional dabbler with Factor. >> >> However, a quick grep turned up these areas that may help further at >> least in the form of example code: >> >> https://github.com/factor/factor/tree/master/basis/opengl >> https://github.com/factor/factor/tree/master/extra/bunny >> https://github.com/factor/factor/tree/master/extra/cuda >> https://github.com/factor/factor/tree/master/extra/gpu >> https://github.com/factor/factor/tree/master/extra/grid-meshes >> https://github.com/factor/factor/tree/master/extra/model-viewer >> >> On Sat, May 22, 2021 at 8:01 AM George Cherevichenko < >> george.chereviche...@gmail.com> wrote: >> >>> There are three lines of the code which I cannot write in Factor >>> >>> glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); >>> glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(GLfloat), >>> (GLvoid*)0); >>> glEnableVertexAttribArray(0); >>> >>> I wanted to use "with-gl-buffer" or "with-vertex-array" from Factor's >>> opengl vocabulary. Are there examples of using these commands? >>> >>> George >>> >>> >>> >>> >>> >>> >>> сб, 22 мая 2021 г. в 00:46, Doug Coleman : >>> It's just C ffi calls right? On Fri, May 21, 2021 at 4:38 PM George Cherevichenko < george.chereviche...@gmail.com> wrote: > It is VERY outdated. I need OpenGL3.0+ > > https://learnopengl.com/code_viewer.php?code=getting-started/hellotriangle > https://hsto.org/files/709/5ad/69c/7095ad69c2a5431083ec84dc25b35cdb.png > > George > > пт, 21 мая 2021 г. в 23:42, Ken Causey : > >> https://github.com/factor/factor/tree/master/extra/nehe >> >> On Fri, May 21, 2021 at 3:27 PM George Cherevichenko < >> george.chereviche...@gmail.com> wrote: >> >>> Is there an example? A rotating triangle would be enough. >>> >>> George >>> ___ >>> Factor-talk mailing list >>> Factor-talk@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/factor-talk >>> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk >>> ___ >>> Factor-talk mailing list >>> Factor-talk@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/factor-talk >>> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] OpenGL3.0+
> "Generic word my-tuple-field<< does not define a method for the fixnum class. > Dispatching on object: 1" > What does it mean? It means you called `1 obj >>my-tuple-field` instead of `obj 1 >>my-tuple-field`. ‐‐‐ Original Message ‐‐‐ On Saturday, May 29th, 2021 at 1:47 AM, George Cherevichenko - george.chereviche...@gmail.com wrote: > "Generic word my-tuple-field<< does not define a method for the fixnum class. > Dispatching on object: 1" > What does it mean? > Now I can draw with glDrawArrays. > > George > > сб, 22 мая 2021 г. в 17:16, Ken Causey : > >> First I should be clear that I claim no special knowledge. I'm more of an >> interested observer and occasional dabbler with Factor. >> >> However, a quick grep turned up these areas that may help further at least >> in the form of example code: >> >> https://github.com/factor/factor/tree/master/basis/opengl >> https://github.com/factor/factor/tree/master/extra/bunny >> https://github.com/factor/factor/tree/master/extra/cuda >> https://github.com/factor/factor/tree/master/extra/gpu >> https://github.com/factor/factor/tree/master/extra/grid-meshes >> https://github.com/factor/factor/tree/master/extra/model-viewer >> >> On Sat, May 22, 2021 at 8:01 AM George Cherevichenko >> wrote: >> >>> There are three lines of the code which I cannot write in Factor >>> >>> glBufferData( >>> >>> GL_ARRAY_BUFFER, >>> >>> sizeof >>> >>> (vertices), vertices, GL_STATIC_DRAW); >>> >>> glVertexAttribPointer( >>> >>> 0 >>> >>> , >>> >>> 3 >>> >>> , >>> >>> GL_FLOAT >>> >>> , >>> >>> GL_FALSE >>> >>> , >>> >>> 3 >>> >>> * >>> >>> sizeof >>> >>> ( >>> >>> GLfloat >>> >>> ), (GLvoid*) >>> >>> 0 >>> >>> ); >>> >>> glEnableV >>> >>> ertexAttribArray( >>> >>> 0 >>> >>> ); >>> >>> I wanted to use "with-gl-buffer" or "with-vertex-array" from Factor's >>> opengl vocabulary. Are there examples of using these commands? >>> >>> George >>> >>> сб, 22 мая 2021 г. в 00:46, Doug Coleman : >>> It's just C ffi calls right? On Fri, May 21, 2021 at 4:38 PM George Cherevichenko wrote: > It is VERY outdated. I need OpenGL3.0+ > https://learnopengl.com/code_viewer.php?code=getting-started/hellotriangle > https://hsto.org/files/709/5ad/69c/7095ad69c2a5431083ec84dc25b35cdb.png > > George > > пт, 21 мая 2021 г. в 23:42, Ken Causey : > >> https://github.com/factor/factor/tree/master/extra/nehe >> >> On Fri, May 21, 2021 at 3:27 PM George Cherevichenko >> wrote: >> >>> Is there an example? A rotating triangle would be enough. >>> >>> George >>> ___ >>> Factor-talk mailing list >>> Factor-talk@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/factor-talk >> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk > > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk >>> >>> ___ >>> Factor-talk mailing list >>> Factor-talk@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/factor-talk >> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] OpenGL3.0+
"Generic word my-tuple-field<< does not define a method for the fixnum class. Dispatching on object: 1" What does it mean? Now I can draw with glDrawArrays. George сб, 22 мая 2021 г. в 17:16, Ken Causey : > First I should be clear that I claim no special knowledge. I'm more of an > interested observer and occasional dabbler with Factor. > > However, a quick grep turned up these areas that may help further at least > in the form of example code: > > https://github.com/factor/factor/tree/master/basis/opengl > https://github.com/factor/factor/tree/master/extra/bunny > https://github.com/factor/factor/tree/master/extra/cuda > https://github.com/factor/factor/tree/master/extra/gpu > https://github.com/factor/factor/tree/master/extra/grid-meshes > https://github.com/factor/factor/tree/master/extra/model-viewer > > On Sat, May 22, 2021 at 8:01 AM George Cherevichenko < > george.chereviche...@gmail.com> wrote: > >> There are three lines of the code which I cannot write in Factor >> >> glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); >> glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(GLfloat), >> (GLvoid*)0); >> glEnableVertexAttribArray(0); >> >> I wanted to use "with-gl-buffer" or "with-vertex-array" from Factor's opengl >> vocabulary. Are there examples of using these commands? >> >> George >> >> >> >> >> >> >> сб, 22 мая 2021 г. в 00:46, Doug Coleman : >> >>> It's just C ffi calls right? >>> >>> On Fri, May 21, 2021 at 4:38 PM George Cherevichenko < >>> george.chereviche...@gmail.com> wrote: >>> It is VERY outdated. I need OpenGL3.0+ https://learnopengl.com/code_viewer.php?code=getting-started/hellotriangle https://hsto.org/files/709/5ad/69c/7095ad69c2a5431083ec84dc25b35cdb.png George пт, 21 мая 2021 г. в 23:42, Ken Causey : > https://github.com/factor/factor/tree/master/extra/nehe > > On Fri, May 21, 2021 at 3:27 PM George Cherevichenko < > george.chereviche...@gmail.com> wrote: > >> Is there an example? A rotating triangle would be enough. >> >> George >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk >>> ___ >>> Factor-talk mailing list >>> Factor-talk@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/factor-talk >>> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] OpenGL3.0+
First I should be clear that I claim no special knowledge. I'm more of an interested observer and occasional dabbler with Factor. However, a quick grep turned up these areas that may help further at least in the form of example code: https://github.com/factor/factor/tree/master/basis/opengl https://github.com/factor/factor/tree/master/extra/bunny https://github.com/factor/factor/tree/master/extra/cuda https://github.com/factor/factor/tree/master/extra/gpu https://github.com/factor/factor/tree/master/extra/grid-meshes https://github.com/factor/factor/tree/master/extra/model-viewer On Sat, May 22, 2021 at 8:01 AM George Cherevichenko < george.chereviche...@gmail.com> wrote: > There are three lines of the code which I cannot write in Factor > > glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); > glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(GLfloat), > (GLvoid*)0); > glEnableVertexAttribArray(0); > > I wanted to use "with-gl-buffer" or "with-vertex-array" from Factor's opengl > vocabulary. Are there examples of using these commands? > > George > > > > > > > сб, 22 мая 2021 г. в 00:46, Doug Coleman : > >> It's just C ffi calls right? >> >> On Fri, May 21, 2021 at 4:38 PM George Cherevichenko < >> george.chereviche...@gmail.com> wrote: >> >>> It is VERY outdated. I need OpenGL3.0+ >>> >>> https://learnopengl.com/code_viewer.php?code=getting-started/hellotriangle >>> https://hsto.org/files/709/5ad/69c/7095ad69c2a5431083ec84dc25b35cdb.png >>> >>> George >>> >>> пт, 21 мая 2021 г. в 23:42, Ken Causey : >>> https://github.com/factor/factor/tree/master/extra/nehe On Fri, May 21, 2021 at 3:27 PM George Cherevichenko < george.chereviche...@gmail.com> wrote: > Is there an example? A rotating triangle would be enough. > > George > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk >>> ___ >>> Factor-talk mailing list >>> Factor-talk@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/factor-talk >>> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] OpenGL3.0+
There are three lines of the code which I cannot write in Factor glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(GLfloat), (GLvoid*)0); glEnableVertexAttribArray(0); I wanted to use "with-gl-buffer" or "with-vertex-array" from Factor's opengl vocabulary. Are there examples of using these commands? George сб, 22 мая 2021 г. в 00:46, Doug Coleman : > It's just C ffi calls right? > > On Fri, May 21, 2021 at 4:38 PM George Cherevichenko < > george.chereviche...@gmail.com> wrote: > >> It is VERY outdated. I need OpenGL3.0+ >> https://learnopengl.com/code_viewer.php?code=getting-started/hellotriangle >> https://hsto.org/files/709/5ad/69c/7095ad69c2a5431083ec84dc25b35cdb.png >> >> George >> >> пт, 21 мая 2021 г. в 23:42, Ken Causey : >> >>> https://github.com/factor/factor/tree/master/extra/nehe >>> >>> On Fri, May 21, 2021 at 3:27 PM George Cherevichenko < >>> george.chereviche...@gmail.com> wrote: >>> Is there an example? A rotating triangle would be enough. George ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk >>> ___ >>> Factor-talk mailing list >>> Factor-talk@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/factor-talk >>> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] OpenGL3.0+
It's just C ffi calls right? On Fri, May 21, 2021 at 4:38 PM George Cherevichenko < george.chereviche...@gmail.com> wrote: > It is VERY outdated. I need OpenGL3.0+ > https://learnopengl.com/code_viewer.php?code=getting-started/hellotriangle > https://hsto.org/files/709/5ad/69c/7095ad69c2a5431083ec84dc25b35cdb.png > > George > > пт, 21 мая 2021 г. в 23:42, Ken Causey : > >> https://github.com/factor/factor/tree/master/extra/nehe >> >> On Fri, May 21, 2021 at 3:27 PM George Cherevichenko < >> george.chereviche...@gmail.com> wrote: >> >>> Is there an example? A rotating triangle would be enough. >>> >>> George >>> ___ >>> Factor-talk mailing list >>> Factor-talk@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/factor-talk >>> >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] OpenGL3.0+
It is VERY outdated. I need OpenGL3.0+ https://learnopengl.com/code_viewer.php?code=getting-started/hellotriangle https://hsto.org/files/709/5ad/69c/7095ad69c2a5431083ec84dc25b35cdb.png George пт, 21 мая 2021 г. в 23:42, Ken Causey : > https://github.com/factor/factor/tree/master/extra/nehe > > On Fri, May 21, 2021 at 3:27 PM George Cherevichenko < > george.chereviche...@gmail.com> wrote: > >> Is there an example? A rotating triangle would be enough. >> >> George >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk >> > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] OpenGL3.0+
https://github.com/factor/factor/tree/master/extra/nehe On Fri, May 21, 2021 at 3:27 PM George Cherevichenko < george.chereviche...@gmail.com> wrote: > Is there an example? A rotating triangle would be enough. > > George > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] OpenGL3.0+
Is there an example? A rotating triangle would be enough. George ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk