View Single Post
Old 4th March 2005, 09:17 AM   #1
monster
Member
Advanced member
 
Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 39
Default Plugin SDK Material Changes

I notice that the material structure is now defined as;
Code:
typedef struct material_t
{
	int dummy;
	// private
} ACMaterial; //  private ACEntity

typedef struct material_template_t
{
    ACrgb rgb; // diffuse
    ACrgb ambient;
    ACrgb specular;
    ACrgb emissive;
    float shininess;
    float transparency;
} ACMaterialTemplate;
So, given that a surface holds an index to it's material in the palette, and that we can get the actual material with
Code:
ACMaterial *ac_palette_get_material(int num);
How do we get ahold of the actual information about that material?
monster is offline   Reply With Quote