Exemple #1
0
//	Adds a new common profile to the specified effect definition (even if it already contains one).
func FxAddProfileCommon(def *cdom.FxEffectDef) (prof *cdom.FxProfile) {
	prof = cdom.NewProfile()
	prof.Common = &cdom.FxProfileCommon{}
	def.Profiles = append(def.Profiles, prof)
	return
}
Exemple #2
0
//	Adds a new GLSL profile to the specified effect definition (even if it already contains one).
func FxAddProfileGlsl(def *cdom.FxEffectDef) (prof *cdom.FxProfile) {
	prof = cdom.NewProfile()
	prof.Glsl = cdom.NewFxProfileGlsl()
	def.Profiles = append(def.Profiles, prof)
	return
}