資源簡介
source/
CMakeLists.txt blender blenderplayer creator game engine
blender/
CMakeLists.txt blentranslation editors makesrna render
avi bmesh freestyle modifiers windowmanager
blenfont collada gpu nodes
blenkernel compositor ikplugin physics
blenlib datatoc imbuf python
blenloader depsgraph makesdna quicktime
gameengine/
BlenderRoutines Expressions Ketsji Rasterizer
CMakeLists.txt GameLogic Network SceneGraph
Converter GamePlayer Physics VideoTexture
blender工程 source文件夾 可以看到blender工程的搭建的代碼了 本人要做3d圖形渲染 所以下了整個blender的工程源碼 不需要那么多的朋友就在這里下載吧 如果要全部的代碼 聯系 企鵝 815615000
代碼片段和文件信息
/*
?*?*****?BEGIN?GPL?LICENSE?BLOCK?*****
?*
?*?This?program?is?free?software;?you?can?redistribute?it?and/or
?*?modify?it?under?the?terms?of?the?GNU?General?Public?License
?*?as?published?by?the?Free?Software?Foundation;?either?version?2
?*?of?the?License?or?(at?your?option)?any?later?version.
?*
?*?This?program?is?distributed?in?the?hope?that?it?will?be?useful
?*?but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
?*?MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the
?*?GNU?General?Public?License?for?more?details.
?*
?*?You?should?have?received?a?copy?of?the?GNU?General?Public?License
?*?along?with?this?program;?if?not?write?to?the?Free?Software?Foundation
?*?Inc.?51?Franklin?Street?Fifth?Floor?Boston?MA?02110-1301?USA.
?*
?*?The?Original?Code?is?Copyright?(C)?2001-2002?by?NaN?Holding?BV.
?*?All?rights?reserved.
?*
?*?The?Original?Code?is:?all?of?this?file.
?*
?*?Contributor(s):?none?yet.
?*
?*?*****?END?GPL?LICENSE?BLOCK?*****
?*
?*/
/**?\file?blender/avi/intern/avi.c
?*??\ingroup?avi
?*
?*?This?is?external?code.
?*/
#include?
#include?
#include?
#include?
#include?
#ifdef?WIN32
#include?“BLI_winstuff.h“
#endif
#include?“MEM_guardedalloc.h“
#include?“BLI_sys_types.h“
#include?“BLI_utildefines.h“
#include?“BLI_fileops.h“
#include?“AVI_avi.h“
#include?“avi_intern.h“
#include?“avi_endian.h“
static?int?AVI_DEBUG?=?0;
static?char?DEBUG_FCC[4];
#define?DEBUG_PRINT(x)?if?(AVI_DEBUG)?{?printf(“AVI?DEBUG:?“?x);?}?(void)0
/*?local?functions?*/
char?*fcc_to_char(unsigned?int?fcc);
char?*tcc_to_char(unsigned?int?tcc);
/*?implemetation?*/
unsigned?int?GET_FCC(FILE?*fp)
{
unsigned?char?tmp[4];
tmp[0]?=?getc(fp);
tmp[1]?=?getc(fp);
tmp[2]?=?getc(fp);
tmp[3]?=?getc(fp);
return?FCC(tmp);
}
unsigned?int?GET_TCC(FILE?*fp)
{
char?tmp[5];
tmp[0]?=?getc(fp);
tmp[1]?=?getc(fp);
tmp[2]?=?0;
tmp[3]?=?0;
return?FCC(tmp);
}
char?*fcc_to_char(unsigned?int?fcc)
{
DEBUG_FCC[0]?=?(fcc)?&?127;
DEBUG_FCC[1]?=?(fcc?>>?8)?&?127;
DEBUG_FCC[2]?=?(fcc?>>?16)?&?127;
DEBUG_FCC[3]?=?(fcc?>>?24)?&?127;
return?DEBUG_FCC;
}
char?*tcc_to_char(unsigned?int?tcc)
{
DEBUG_FCC[0]?=?(tcc)?&?127;
DEBUG_FCC[1]?=?(tcc?>>?8)?&?127;
DEBUG_FCC[2]?=?0;
DEBUG_FCC[3]?=?0;
return?DEBUG_FCC;
}
int?AVI_get_stream(AviMovie?*movie?int?avist_type?int?stream_num)
{
int?cur_stream;
if?(movie?==?NULL)
return?-AVI_ERROR_OPTION;
for?(cur_stream?=?0;?cur_stream?header->Streams;?cur_stream++)?{
if?(movie->streams[cur_stream].sh.Type?==?avist_type)?{
if?(stream_num?==?0)
return?cur_stream;
else
stream_num--;
}
}
return?-AVI_ERROR_FOUND;
}
static?int?fcc_get_stream(int?fcc)
{
char?fccs[4];
fccs[0]?=?fcc;
fccs[1]?=?fcc?>>?8;
fccs[2]?=?fcc?>>?16;
fccs[3]?=?fcc?>>?24;
return?10?*?(fccs[0]?-?‘0‘)?+?(fccs[1]?-?‘0‘);
}
static?bool?fcc_is_data(int?fcc)
{
char?fccs[4];
fccs[0]?=?fcc;
fccs[1]?=?fcc?>>?8;
fccs[2]?=?fcc?>>?16;
fccs[3]?=?fcc?>>?24;
i
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-04-04?09:39??source\
?????文件????????6148??2016-04-04?10:12??source\.DS_Store
?????目錄???????????0??2016-04-04?10:18??__MACOSX\
?????目錄???????????0??2016-04-04?10:18??__MACOSX\source\
?????文件?????????120??2016-04-04?10:12??__MACOSX\source\._.DS_Store
?????目錄???????????0??2016-04-04?09:39??source\blender\
?????文件???????10244??2016-04-04?10:12??source\blender\.DS_Store
?????目錄???????????0??2016-04-04?10:18??__MACOSX\source\blender\
?????文件?????????120??2016-04-04?10:12??__MACOSX\source\blender\._.DS_Store
?????目錄???????????0??2016-04-03?17:44??source\blender\avi\
?????文件????????7597??2016-04-03?17:44??source\blender\avi\AVI_avi.h
?????文件????????1360??2016-04-03?17:44??source\blender\avi\CMakeLists.txt
?????目錄???????????0??2016-04-03?17:44??source\blender\avi\intern\
?????文件???????30083??2016-04-03?17:44??source\blender\avi\intern\avi.c
?????文件????????3396??2016-04-03?17:44??source\blender\avi\intern\avi_codecs.c
?????文件????????5111??2016-04-03?17:44??source\blender\avi\intern\avi_endian.c
?????文件????????1426??2016-04-03?17:44??source\blender\avi\intern\avi_endian.h
?????文件????????1886??2016-04-03?17:44??source\blender\avi\intern\avi_intern.h
?????文件???????13194??2016-04-03?17:44??source\blender\avi\intern\avi_mjpeg.c
?????文件????????1310??2016-04-03?17:44??source\blender\avi\intern\avi_mjpeg.h
?????文件????????4657??2016-04-03?17:44??source\blender\avi\intern\avi_options.c
?????文件????????3680??2016-04-03?17:44??source\blender\avi\intern\avi_rgb.c
?????文件????????1306??2016-04-03?17:44??source\blender\avi\intern\avi_rgb.h
?????文件????????2478??2016-04-03?17:44??source\blender\avi\intern\avi_rgb32.c
?????文件????????1310??2016-04-03?17:44??source\blender\avi\intern\avi_rgb32.h
?????目錄???????????0??2016-04-03?17:44??source\blender\blenfont\
?????文件????????9386??2016-04-03?17:44??source\blender\blenfont\BLF_api.h
?????文件????????1696??2016-04-03?17:44??source\blender\blenfont\CMakeLists.txt
?????目錄???????????0??2016-04-03?17:44??source\blender\blenfont\intern\
?????文件???????19174??2016-04-03?17:44??source\blender\blenfont\intern\blf.c
?????文件????????4151??2016-04-03?17:44??source\blender\blenfont\intern\blf_dir.c
............此處省略3589個文件信息
評論
共有 條評論