Example #1
0
/**
 * @brief
 */
void R_PreLink_null(const r_program_t *program) {
	
	R_BindAttributeLocation(program, "POSITION", R_ATTRIB_POSITION);
	R_BindAttributeLocation(program, "COLOR", R_ATTRIB_COLOR);
	R_BindAttributeLocation(program, "TEXCOORD", R_ATTRIB_DIFFUSE);

	R_BindAttributeLocation(program, "NEXT_POSITION", R_ATTRIB_NEXT_POSITION);
}
Example #2
0
/**
 * @brief
 */
void R_PreLink_shell(const r_program_t *program) {

	R_BindAttributeLocation(program, "POSITION", R_ATTRIB_POSITION);
	R_BindAttributeLocation(program, "NORMAL", R_ATTRIB_NORMAL);
	R_BindAttributeLocation(program, "TEXCOORD", R_ATTRIB_DIFFUSE);

	R_BindAttributeLocation(program, "NEXT_POSITION", R_ATTRIB_NEXT_POSITION);
	R_BindAttributeLocation(program, "NEXT_NORMAL", R_ATTRIB_NEXT_NORMAL);
}
Example #3
0
/**
 * @brief
 */
void R_PreLink_default(const r_program_t *program) {

	R_BindAttributeLocation(program, "POSITION", R_ARRAY_POSITION);
	R_BindAttributeLocation(program, "COLOR", R_ARRAY_COLOR);
	R_BindAttributeLocation(program, "TEXCOORD0", R_ARRAY_DIFFUSE);
	R_BindAttributeLocation(program, "TEXCOORD1", R_ARRAY_LIGHTMAP);
	R_BindAttributeLocation(program, "NORMAL", R_ARRAY_NORMAL);
	R_BindAttributeLocation(program, "TANGENT", R_ARRAY_TANGENT);

	R_BindAttributeLocation(program, "NEXT_POSITION", R_ARRAY_NEXT_POSITION);
	R_BindAttributeLocation(program, "NEXT_NORMAL", R_ARRAY_NEXT_NORMAL);
	R_BindAttributeLocation(program, "NEXT_TANGENT", R_ARRAY_NEXT_TANGENT);
}