增加GLEW Core

This commit is contained in:
2018-11-30 13:57:57 +08:00
parent b8b818e6f2
commit 9c0c1edc62
20 changed files with 58313 additions and 109 deletions

2618
inc/hgl/render/GL/eglew.h Normal file

File diff suppressed because it is too large Load Diff

23686
inc/hgl/render/GL/glew.h Normal file

File diff suppressed because it is too large Load Diff

1775
inc/hgl/render/GL/glxew.h Normal file

File diff suppressed because it is too large Load Diff

1447
inc/hgl/render/GL/wglew.h Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -2,7 +2,6 @@
#define HGL_LIST_CPP
#include<string.h>
#include<hgl/LogInfo.h>
//--------------------------------------------------------------------------------------------------
// 代码中的部分memcpy可替换为memmove,但这样会引起CodeGuard/Valgrind之类的内存调试器报错
//--------------------------------------------------------------------------------------------------
@@ -12,10 +11,7 @@ namespace hgl
bool List<T>::Get(int index,T &ti)const
{
if(!items||index<0||index>=count)
{
LOG_ERROR(OS_TEXT("List<>::Get(index=")+OSString(index)+OS_TEXT(") error,DataCount=")+OSString(count));
return(false);
}
memcpy(&ti,items+index,sizeof(T));
return(true);

View File

@@ -1,7 +1,6 @@
#ifndef HGL_LIST_INCLUDE
#define HGL_LIST_INCLUDE
#include<hgl/LogInfo.h>
#include<stdlib.h>
#include<initializer_list>