CFTE+DevIL=?

Jacob Carlborg doob at me.com
Mon Oct 8 10:49:48 PDT 2012


On 2012-10-08 15:24, Zhenya wrote:
> Hi!
> I need to load some textures for my game,but I woud like to do it in
> compile time.
> I know that CTFE imposes restrictions on functions.So can I execute some
> DevIL(Derelict3) functions?

What you can do is importing the textures into the executable, at 
compile time, if that helps:

http://dlang.org/expression.html#ImportExpression

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list