Class ShaderUniform

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class ShaderUniform
    extends ShaderDefault
    implements java.lang.AutoCloseable
    • Constructor Summary

      Constructors 
      Constructor Description
      ShaderUniform​(java.lang.String p_i45092_1_, int p_i45092_2_, int p_i45092_3_, IShaderManager p_i45092_4_)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.lang.String getName()  
      static int getTypeFromString​(java.lang.String p_148085_0_)  
      static int glGetAttribLocation​(int p_227807_0_, java.lang.CharSequence p_227807_1_)  
      static int glGetUniformLocation​(int p_227806_0_, java.lang.CharSequence p_227806_1_)  
      private void markDirty()  
      void set​(float p_148090_1_)  
      void set​(float[] p_148097_1_)  
      void set​(float p_148087_1_, float p_148087_2_)  
      void set​(float p_148095_1_, float p_148095_2_, float p_148095_3_)  
      void set​(float p_148081_1_, float p_148081_2_, float p_148081_3_, float p_148081_4_)  
      void set​(Matrix4f p_195652_1_)  
      void setLocation​(int p_148084_1_)  
      void setSafe​(float p_148092_1_, float p_148092_2_, float p_148092_3_, float p_148092_4_)  
      void setSafe​(int p_148083_1_, int p_148083_2_, int p_148083_3_, int p_148083_4_)  
      void upload()  
      private void uploadAsFloat()  
      private void uploadAsInteger()  
      private void uploadAsMatrix()  
      static void uploadInteger​(int p_227805_0_, int p_227805_1_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • location

        private int location
      • count

        private final int count
      • type

        private final int type
      • intValues

        private final java.nio.IntBuffer intValues
      • floatValues

        private final java.nio.FloatBuffer floatValues
      • name

        private final java.lang.String name
      • dirty

        private boolean dirty
    • Constructor Detail

      • ShaderUniform

        public ShaderUniform​(java.lang.String p_i45092_1_,
                             int p_i45092_2_,
                             int p_i45092_3_,
                             IShaderManager p_i45092_4_)
    • Method Detail

      • glGetUniformLocation

        public static int glGetUniformLocation​(int p_227806_0_,
                                               java.lang.CharSequence p_227806_1_)
      • uploadInteger

        public static void uploadInteger​(int p_227805_0_,
                                         int p_227805_1_)
      • glGetAttribLocation

        public static int glGetAttribLocation​(int p_227807_0_,
                                              java.lang.CharSequence p_227807_1_)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • markDirty

        private void markDirty()
      • getTypeFromString

        public static int getTypeFromString​(java.lang.String p_148085_0_)
      • setLocation

        public void setLocation​(int p_148084_1_)
      • getName

        public java.lang.String getName()
      • set

        public void set​(float p_148090_1_)
        Overrides:
        set in class ShaderDefault
      • set

        public void set​(float p_148087_1_,
                        float p_148087_2_)
        Overrides:
        set in class ShaderDefault
      • set

        public void set​(float p_148095_1_,
                        float p_148095_2_,
                        float p_148095_3_)
        Overrides:
        set in class ShaderDefault
      • set

        public void set​(float p_148081_1_,
                        float p_148081_2_,
                        float p_148081_3_,
                        float p_148081_4_)
        Overrides:
        set in class ShaderDefault
      • setSafe

        public void setSafe​(float p_148092_1_,
                            float p_148092_2_,
                            float p_148092_3_,
                            float p_148092_4_)
        Overrides:
        setSafe in class ShaderDefault
      • setSafe

        public void setSafe​(int p_148083_1_,
                            int p_148083_2_,
                            int p_148083_3_,
                            int p_148083_4_)
        Overrides:
        setSafe in class ShaderDefault
      • set

        public void set​(float[] p_148097_1_)
        Overrides:
        set in class ShaderDefault
      • upload

        public void upload()
      • uploadAsInteger

        private void uploadAsInteger()
      • uploadAsFloat

        private void uploadAsFloat()
      • uploadAsMatrix

        private void uploadAsMatrix()