资源简介
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 < movie->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个文件信息
相关资源
- 黑马程序员最新24期C/C++全栈培训讲义
- QR码二维码编码C++源代码VS2010编译环境
- QR二维码解码,C++源代码VS2010编译环境
- C++ 孔令德计算机图形学习题答案源代
- 策略为王股票软件源代码(3.10专业版
- C-Free 5.0
- 精通Visual C++图像处理编程(PDF & 源代
- 计算机图形学+配书源代码
- ffplay for MFC 1.1 源代码
- vc++ MFC 背单词软件毕业设计系统源代
- IC卡停车场管理系统源代码
- 状态指示灯(VC++6.0源代码)
- 车牌牌照检测识别 VC++和opencv1.0 完整
- C#程序设计经典300例源代码
- 算法与数据结构课件及源代码
- office 文档自动打印
- 单片机与PC机串口通信的类程序
- 算法竞赛入门经典(第2版)lrj紫书
- stm32实现MODBUS-MODBUS做主站
- 浏览磁盘所有文件夹c++源代码
- 新概念51单片机C语言教程 入门、提高
- 转发报警
- c++ 旋转的圆柱
- uip 通信(stm32) 源代码
- sift算法的C源码(网上唯一原创版本不
- 心电信号检测算法.rar
- booktool(x86汇编语言-从实模式到保护
- C++实战源码-AVI文件压缩工具
- C++实战源码-利用Direct Show进行视频捕
- C++实战源码-PSD文件向其他格式转换
评论
共有 条评论