增加GLEW Core
This commit is contained in:
2618
inc/hgl/render/GL/eglew.h
Normal file
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
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
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
1447
inc/hgl/render/GL/wglew.h
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
|
@@ -1,7 +1,6 @@
|
||||
#ifndef HGL_LIST_INCLUDE
|
||||
#define HGL_LIST_INCLUDE
|
||||
|
||||
#include<hgl/LogInfo.h>
|
||||
#include<stdlib.h>
|
||||
#include<initializer_list>
|
||||
|
||||
|
Reference in New Issue
Block a user