I'm working on a larger project to make Allegro5 simpler to use for myself. What I want to do is be able to setup a "palette" of colors that I can use with IntelliSense throughout my projects (i.e. type 'clr.' and a list appears of color constants), but at the same time, NOT be able to create new palettes.
My compiler is Microsoft Visual C++ 2010.
For example..
What I can do now...
1 2 3 4 5 6
int main()
{
window.BGColor(clr.RED);
//..other code...
return 0;
}
This is what I have so far (the struct at the bottom is the important part)...
What I'm thinking is I need a way to make a private class instead of using the structure - not just the members of the class, but straight up - a class that can't be declared somewhere else. I'm pretty sure that's not possible, so I'm looking for other ideas/approaches??