Real Simple Question?
    WhatMeWorry via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Sat Oct 22 13:35:27 PDT 2016
    
    
  
This is probably so simple that there's no example anywhere.
Basically, I've got a huge array definition (see below) which I 
reuse over and over again in different projects.
GLfloat[] vertices =
[
     // Positions          // Texture Coords
     -0.5f, -0.5f, -0.5f,  0.0f, 0.0f,
      0.5f, -0.5f, -0.5f,  1.0f, 0.0f,
                  .....
              (lots and lots of values)
                  .....
I'd like to place this one array into a separate file and just 
include it with a one line statement in many projects.  I'm 
thinking mixins and/or imports but then if I knew how to do this, 
I wouldn't be asking.
Thanks in advance.
    
    
More information about the Digitalmars-d-learn
mailing list