Example #1
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
}
Example #2
0
func init_FxProfileGlsl(xn *xmlx.Node) (obj *cdom.FxProfileGlsl) {
	obj = cdom.NewFxProfileGlsl()

	load_FxProfileGlsl(xn, obj)
	return
}