Beispiel #1
0
        public unsafe GSEffectTechnique GetTechnique(string name)
        {
            IntPtr ptr = libobs.gs_effect_get_technique(instance, name);
            if (ptr == IntPtr.Zero)
                return null;

            GSEffectTechnique effect = new GSEffectTechnique(ptr);
            return effect;
        }
Beispiel #2
0
        public unsafe GSEffectTechnique GetTechnique(string name)
        {
            IntPtr ptr = libobs.gs_effect_get_technique(instance, name);

            if (ptr == IntPtr.Zero)
            {
                return(null);
            }

            GSEffectTechnique effect = new GSEffectTechnique(ptr);

            return(effect);
        }
Beispiel #3
0
 public static unsafe void TechniqueEndPass(GSEffectTechnique tech)
 {
     libobs.gs_technique_end_pass((IntPtr)tech.GetPointer());
 }
Beispiel #4
0
 public static unsafe void TechniqueBeginPass(GSEffectTechnique tech, uint pass)
 {
     libobs.gs_technique_begin_pass((IntPtr)tech.GetPointer(), (UIntPtr)pass);
 }
Beispiel #5
0
 public static unsafe void TechniqueBegin(GSEffectTechnique tech)
 {
     libobs.gs_technique_begin((IntPtr)tech.GetPointer());
 }
Beispiel #6
0
 public static unsafe void TechniqueEndPass(GSEffectTechnique tech)
 {
     libobs.gs_technique_end_pass((IntPtr)tech.GetPointer());
 }
Beispiel #7
0
 public static unsafe void TechniqueBeginPass(GSEffectTechnique tech, uint pass)
 {
     libobs.gs_technique_begin_pass((IntPtr)tech.GetPointer(), (UIntPtr)pass);
 }
Beispiel #8
0
 public static unsafe void TechniqueBegin(GSEffectTechnique tech)
 {
     libobs.gs_technique_begin((IntPtr)tech.GetPointer());
 }