上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
摘要: 实际上OpenGL画透明是使用的混合的技术,原理比较复杂,但使用起来还是相当简单的。如下面这样写就可以了。 glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glDisable(GL_DEPTH_TEST); // 此处需要禁止深度测试// 画要透明的图形 ........ glDisable(GL_BLEND); trackback:www.cnblogs.com/JohnShao/admin/EditPosts.aspx?opt=1 阅读全文
posted @ 2011-11-16 04:03 大有|元亨 阅读(739) 评论(0) 推荐(0)
摘要: 视频教程http://www.vhxsd.com/list/483http://www.tudou.com/programs/view/cKEpg3mx0Ck/ 阅读全文
posted @ 2011-11-11 13:46 大有|元亨 阅读(364) 评论(0) 推荐(0)
摘要: 在ubuntu中使用最新版ffmpeg,出现一些错误,现将错误和解决方案列举如下:error 1: libavutil/common.h:170:47: error: ‘UINT64_C’ was not declared in this scopesolution: Add the code below to the common.h#ifdef__cplusplus#define__STDC_CONSTANT_MACROS#ifdef_STDINT_H#undef_STDINT_H#endif#include<stdint.h>#endif 阅读全文
posted @ 2011-11-08 04:34 大有|元亨 阅读(497) 评论(0) 推荐(0)
摘要: 直接在vim官网上下的vim7.2源码包,编译无报错,直接运行vim也无错,但是在home目录下添加vimrc文件之后,再打开会输出如下错误:buffer overflow detected代码:*** buffer overflow detected ***: vim terminated======= Backtrace: =========/lib/libc.so.6(__fortify_fail+0x37)[0x7ffd4e4675f7]/lib/libc.so.6[0x7ffd4e4665a0]vim[0x43e433]vim[0x43ef19]vim[0x43fcb0]vim[0x 阅读全文
posted @ 2011-10-27 11:44 大有|元亨 阅读(2031) 评论(0) 推荐(0)
摘要: 主要参考[1],没有使用--enable-libx264,因为只用来解码。./configure后出现VA-API版本不够,按照[2]进行安装,忽略了1wgethttp://paste.kde.org/6967/raw/-OLibva_testdir_makefile.patch2patch-p1<Libva_testdir_makefile.patchReference[1] http://ubuntuforums.org/showthread.php?t=786095[2] http://forum.xbmc.org/showthread.php?t=96669 阅读全文
posted @ 2011-10-26 05:09 大有|元亨 阅读(393) 评论(0) 推荐(0)
摘要: How to make matlab accessable by clicks If you wanna use matlab in linux and you don’t like start a terminal to run matlab every time, then this is the text file you need to type: [Desktop Entry]Version=1.0Name=MatlabGenericName=MatlabComment=Matlab:The Language of Technical ... 阅读全文
posted @ 2011-10-25 03:40 大有|元亨 阅读(971) 评论(1) 推荐(0)
摘要: 前段时间一直忙于其他事情,Orange'S的学习暂时搁浅了。现在可以更多时间学习编写操作系统了,把之前学过的重新温习一下。学习环境 Ubuntu 11.04 + Bochs 2.4.6 + NASM主要工作1. 第一章 马上动手写一个最小的“操作系统”代码如下: 1 org 07c00h ; tell the compiler that the program is loaded at 7c00 2 mov ax, cs 3 mov ds, ax 4 mov es, ax 5 call DispStr ; call the example about string d... 阅读全文
posted @ 2011-10-23 00:45 大有|元亨 阅读(9047) 评论(3) 推荐(1)
摘要: 手上有一堆很大的tif图片,想要批量转成尺寸小一点的jpg图片。对于图片处理,特别是批量的时候,命令行工具imagemagick可以说是最好不过的工具了。一 般对于处理转换图片,imagemagick提供了convert和mogrify两个工具,convert一般用于处理完后输出到另一个文件,而 mogrify一般用于修改源文件,但是如果指明不同的格式,mogrify也会保存到另一个不同扩展名的文件中去。这里我要用到的就是magrify。命令很简单:ls *tif | xargs -n1 mogrify -format jpg -resize ">1024x1024" 阅读全文
posted @ 2011-10-19 11:50 大有|元亨 阅读(928) 评论(2) 推荐(0)
摘要: http://gitready.com/http://files.cnblogs.com/scotoma/git_tutorial.pdfhttp://help.github.com/linux-set-up-git/ 阅读全文
posted @ 2011-10-16 02:23 大有|元亨 阅读(158) 评论(0) 推荐(0)
摘要: Timer.h 1 ////////////////////////////////////////////////////////////////////////////// 2 // Timer.h 3 // ======= 4 // High Resolution Timer. 5 // This timer is able to measure the elapsed time with 1 micro-second accuracy 6 // in both Windows, Linux and Unix system 7 // 8 // AUTHOR: Song Ho Ahn .. 阅读全文
posted @ 2011-10-14 03:54 大有|元亨 阅读(412) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页