Пример #1
0
 public KtxHeader(
     KtxEndianness endianness,
     GlType glType,
     uint glTypeSize,
     GlPixelFormat glFormat,
     GlInternalPixelFormat glInternalFormat,
     GlBaseInternalPixelFormat glBaseInternalFormat,
     uint width,
     uint height,
     uint pixelDepth,
     uint numberOfArrayElements,
     uint numberOfFaces,
     uint numberOfMipmapLevels,
     uint bytesOfKeyValueData)
 {
     this.Endianness           = endianness;
     this.GlTypeParameter      = glType;
     this.GlTypeSize           = glTypeSize;
     this.GlFormat             = glFormat;
     this.GlInternalFormat     = glInternalFormat;
     this.GlBaseInternalFormat = glBaseInternalFormat;
     this.Width                 = width;
     this.Height                = height;
     this.PixelDepth            = pixelDepth;
     this.NumberOfArrayElements = numberOfArrayElements;
     this.NumberOfFaces         = numberOfFaces;
     this.NumberOfMipmapLevels  = numberOfMipmapLevels;
     this.BytesOfKeyValueData   = bytesOfKeyValueData;
 }
Пример #2
0
        public SrcpGenericLoc GetSrcpGenericLoc()
        {
            if (srcpGenericLoc == null)
            {
                Control control = null;
                try
                {
                    control = selectBus;
                    int bus = selectBus.Bus;

                    control = textBoxAddress;
                    int address = int.Parse(textBoxAddress.Text);

                    control = comboBoxType;
                    GlType type = (GlType)comboBoxType.SelectedItem;

                    control = comboBoxSteps;
                    int steps = int.Parse(comboBoxSteps.Text);

                    control = textBoxFunctions;
                    int functions = int.Parse(textBoxFunctions.Text);

                    control = null;

                    if (current == null)
                    {
                        current = new SrcpGenericLoc(serverConnection);
                    }
                    current.Init(bus, address, type.Protocol, steps, functions);
                    srcpGenericLoc = current;
                }
                catch
                {
                    if (control != null)
                    {
                        control.Focus();
                    }
                    throw;
                }
            }
            return(srcpGenericLoc);
        }
Пример #3
0
 public void VertexAttribPointer(uint indx, int size, GlType type, GlBoolean normalized, int stride, IntPtr ptr)
 {
     NativeGl.glVertexAttribPointer(indx, size, (uint)type, (byte)normalized, stride, ptr);
 }
Пример #4
0
 public void VertexAttribPointer(uint indx, int size, GlType type, GlBoolean normalized, int stride)
 {
     this.VertexAttribPointer(indx, size, type, normalized, stride, IntPtr.Zero);
 }
Пример #5
0
 public GlObject(int handle, GlType glType)
 {
     Handle  = handle;
     _glType = glType;
 }