Le 15/4/16 18:28, Thibault Raffaillac a écrit :
Hi,

My work on OpenGL ES is almost done,

Cool I'm curious if we could have an Athens backend based on it :)
  and I am now trying to play with it in the Playground. However, since 
constants are stored in a pool dictionary you have to create a class importing 
it to encapsulate your OpenGL calls, so cannot just write snippets in 
Playground. This is very annoying for prototyping, so is there a good common 
design pattern to be able to use constants there ?

What you could do is to generate class methods for each of the classvariable
in pseudo code

OpenGL classVariables do:  [:each |
OpenClass class compiled: each name, ' ^ ', each name classified: accessing ]

this way you can do

OpenGL MyConstant in the playground

Cheers,
Thibault




Reply via email to