Example #1
0
        private static void Load_VERSION_3_2()
        {
            _DrawElementsBaseVertex          = GetAddress <DrawElementsBaseVertex>("glDrawElementsBaseVertex");
            _DrawRangeElementsBaseVertex     = GetAddress <DrawRangeElementsBaseVertex>("glDrawRangeElementsBaseVertex");
            _DrawElementsInstancedBaseVertex = GetAddress <DrawElementsInstancedBaseVertex>("glDrawElementsInstancedBaseVertex");
            _MultiDrawElementsBaseVertex     = GetAddress <MultiDrawElementsBaseVertex>("glMultiDrawElementsBaseVertex");
            ProvokingVertex        = GetAddress <ProvokingVertex>("glProvokingVertex");
            FenceSync              = GetAddress <FenceSync>("glFenceSync");
            IsSync                 = GetAddress <IsSync>("glIsSync");
            DeleteSync             = GetAddress <DeleteSync>("glDeleteSync");
            ClientWaitSync         = GetAddress <ClientWaitSync>("glClientWaitSync");
            WaitSync               = GetAddress <WaitSync>("glWaitSync");
            GetInteger64           = GetAddress <GetInteger64>("glGetInteger64v");
            GetInteger64v          = GetAddress <GetInteger64v>("glGetInteger64v");
            GetSynci               = GetAddress <GetSynci>("glGetSynciv");
            GetSynciv              = GetAddress <GetSynciv>("glGetSynciv");
            GetInteger64i_         = GetAddress <GetInteger64i_>("glGetInteger64i_v");
            GetInteger64i_v        = GetAddress <GetInteger64i_v>("glGetInteger64i_v");
            GetBufferParameteri64  = GetAddress <GetBufferParameteri64>("glGetBufferParameteri64v");
            GetBufferParameteri64v = GetAddress <GetBufferParameteri64v>("glGetBufferParameteri64v");
            FramebufferTexture     = GetAddress <FramebufferTexture>("glFramebufferTexture");
            TexImage2DMultisample  = GetAddress <TexImage2DMultisample>("glTexImage2DMultisample");
            TexImage3DMultisample  = GetAddress <TexImage3DMultisample>("glTexImage3DMultisample");
            GetMultisamplefv       = GetAddress <GetMultisamplefv>("glGetMultisamplefv");
            SampleMaski            = GetAddress <SampleMaski>("glSampleMaski");

            VERSION_3_2 = VERSION_3_1 && _DrawElementsBaseVertex != null && _DrawRangeElementsBaseVertex != null &&
                          _DrawElementsInstancedBaseVertex != null && _MultiDrawElementsBaseVertex != null &&
                          ProvokingVertex != null && FenceSync != null && IsSync != null && DeleteSync != null && ClientWaitSync != null &&
                          WaitSync != null && GetInteger64v != null && GetSynciv != null && GetInteger64i_v != null && GetBufferParameteri64v != null &&
                          FramebufferTexture != null && TexImage2DMultisample != null && TexImage3DMultisample != null &&
                          GetMultisamplefv != null && SampleMaski != null;
        }
Example #2
0
        public override int GetHashCode()
        {
            int hashCode = 17; // we *know* we are using this in a dictionary, so pre-compute this

            hashCode = hashCode * 23 + Id.GetHashCode();
            hashCode = hashCode * 23 + (Fid == null ? 0 : Fid.GetHashCode());
            hashCode = hashCode * 23 + (EnableDate == null ? 0 : EnableDate.GetHashCode());
            hashCode = hashCode * 23 + (DisableDate == null ? 0 : DisableDate.GetHashCode());
            hashCode = hashCode * 23 + Dr.GetHashCode();
            hashCode = hashCode * 23 + Ts.GetHashCode();
            hashCode = hashCode * 23 + (CreateBy == null ? 0 : CreateBy.GetHashCode());
            hashCode = hashCode * 23 + (CreateDate == null ? 0 : CreateDate.GetHashCode());
            hashCode = hashCode * 23 + (CreateName == null ? 0 : CreateName.GetHashCode());
            hashCode = hashCode * 23 + (UpdateBy == null ? 0 : UpdateBy.GetHashCode());
            hashCode = hashCode * 23 + (UpdateDate == null ? 0 : UpdateDate.GetHashCode());
            hashCode = hashCode * 23 + (UpdateName == null ? 0 : UpdateName.GetHashCode());
            hashCode = hashCode * 23 + (TableName == null ? 0 : TableName.GetHashCode());
            hashCode = hashCode * 23 + (TableComment == null ? 0 : TableComment.GetHashCode());
            hashCode = hashCode * 23 + (TableMode == null ? 0 : TableMode.GetHashCode());
            hashCode = hashCode * 23 + (SubTable == null ? 0 : SubTable.GetHashCode());
            hashCode = hashCode * 23 + IsTree.GetHashCode();
            hashCode = hashCode * 23 + IsPagination.GetHashCode();
            hashCode = hashCode * 23 + IsSync.GetHashCode();

            return(hashCode);
        }