主要是參考 3D繪圖程式設計這一本書,恩。
code : http://damody.googlecode.com/files/DX9Font.7z
用法簡介:
初始化
device->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
device->SetRenderState(D3DRS_LIGHTING, FALSE);
device->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE);
公告版位
- Dec 12 Sun 2010 23:25
使用dx9在windows寫unicode的字(可設顏色)
- Dec 09 Thu 2010 23:34
com0com win7 x64 創建com port不能
http://efreedom.com/Question/1-1388871/Get-List-Available-Serial-Ports-Win32
根據這邊的程式來測的。
http://com0com.sourceforge.net/
上google聽這位仁兄說
http://florent.clairambault.fr/tag/com0com
需要小patch?
http://www.ngohq.com/home.php?page=Files&go=cat&dwn_cat_id=34&go=giveme&dwn_id=826
真的嗎?
試了沒用。
- Dec 03 Fri 2010 02:33
手拿杯
伸手拿杯
手伸起來往前,放下,拿杯,拿回來。
手昇起30公分,向前90公分,手打開90度角,手下降20公分,手合起到60度角,手昇起20公分,手向後90公分,手向下30公分。
- Dec 02 Thu 2010 13:22
科學計算python作業,感覺還不夠科學...
hw3.py
# -*- coding: utf-8 -*-
from datetime import date
import time
import random
import operator
import os
import sys
from numpy import *
- Dec 02 Thu 2010 11:29
時逢二退
我真的覺得大部份研究生的二次退選的理由很病態,
一.分數不好拿很難混,退了~
二.有project,東西不會做,程式不會寫,退了~
三.同學都退了,退了~
四.選課的都是男生,退了~
五.有某lab的高手分數太高,造成調分障礙,退了~
我個人覺得比較正常的理由
一.老師太OOXX
- Nov 27 Sat 2010 21:59
c++推薦書單?
----C++區
c++標準程式庫
stl源碼剖析
c++設計新思維
c++編程規範
effective C++中文版
move effective C++中文版
Expectional C++中文版
Visual C++ 2008 教學手冊
- Nov 24 Wed 2010 21:44
[powershell]依續執行目錄下的所有exe
dir "*.exe" | % {."$_"}
- Nov 24 Wed 2010 13:25
最近新聞
大學工業化
http://www.ithome.com.tw/itadm/article.php?c=64561
http://stevenbenner.com/2010/08/will-the-really-real-programmers-please-stand-up/
Writing Unit Tests in Visual Studio for Native C++
- Nov 22 Mon 2010 08:24
關於porting
我說的porting是把一套軟體在有或沒有source code的情況下移稙到另一個環境,
可能是
軟體版本
Window XP NoSP,SP1~3
Window Vista NoSP,SP1
visual studio 2008 sp1
visual studio 2005 sp1
作業系統
win<->linux<->BSD<->MAC
硬體
- Nov 21 Sun 2010 04:30
太可惜了最近才發現
http://portableapps.com/
可以不安裝的執行,重點是有幫你做捷徑,
這樣以後我玩stepmania之類的就有選單了,
只要把程式丟到PortableApps的資料夾就可以了。
會自動出現exe的捷徑。
- Nov 19 Fri 2010 15:20
猜猜看錯在哪?
PicObject* tmpobj = NULL;
const int size = vPic.size();
int i;
for (i = 0;i < size;i++)
{
if (vPic[i].pobj.id == ID)
{
tmpobj = &(vPic[i].pobj);
printf("vPic[i]:%d tmpobj:%d ID:%d\n", vPic[i].pobj.id, tmpobj->id, ID);
- Nov 14 Sun 2010 23:39
最近發現maillist真是好物
可是一般的ip都不能發信呀~ qq
所以就試用了免費的 http://www.bravenet.com/webtools/elist/
如果大家有找到更好用的請告訴我喔~
目前正在申請freelist http://www.freelists.org/
- Nov 11 Thu 2010 15:40
no homework of python
#! /usr/bin/python
import sys
import re
from math import *
p = r"(\d) *: *(\d) *, *(\d\.{0,1}\d{0,1})"
str = sys.argv[1]
func = sys.argv[2]
gg = re.search(p, str).groups()
x = float(gg[0])
- Nov 06 Sat 2010 21:47
fatal error CVT1100 in wxWidget
最近我的專題的project用了愈來愈多library了,我覺得很奇怪的一件事,就是不能累加連結?
每次連結都要連結個30秒,超久的= =編譯的話我有用http://damody.pixnet.net/blog/post/26698772所以還好,
因此我就設定要累加連結
然後就fatal error CVT1100了!
根據http://dev.firnow.com/course/3_program/c++/cppsl/2008419/110680.html前人的智慧精華
發現在 資訊清單工具->輸入和輸出->內嵌資訊清單->否
就可以解決了!
- Nov 04 Thu 2010 14:54
如何在Windows7開GOM player加速不變聲(音調)
之前都是開xp的vm來看,現在終於不用了= =
先去載這個http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx
Autoruns
然後先打開gom隨便開一個加速會錯的影片
右鍵點檔案資訊
可以看到你的編碼器
現在打開Autoruns,點
- Nov 04 Thu 2010 03:26
肝(ㄍㄢ)在andes上跑SDL,晶心你好棒!
http://andescore.blogspot.com/2010/02/sdlsimple-directmedia-layer.html
好他講的都對,但如果你在平台ADP-AG101上跑你就錯了!
就只有configure 不對
./configure --host=nds32le-linux --prefix=/usr/local/sdl --disable-shared --enable-static --disable-audio --disable-cdrom --disable-alsa --disable-esd --disable-arts --disable-nasm --disable-video-x11 --disable-video-dga --disable-video-fbcon --disable-video-qtopia --disable-video-dummy
如果你這樣編下去,那你就沒有半個video device了!
請把--disable-video-fbcon 砍掉
大概會長這樣
./configure --host=nds32le-linux --prefix=/I_am_gun \
--disable-shared --enable-static --disable-audio --disable-cdrom --enable-input-tslib\
--disable-alsa --disable-esd --disable-arts --disable-nasm --disable-video-x11 \
- Nov 03 Wed 2010 21:02
我要在andes (ADP AG101)玩跳舞機!
- Nov 02 Tue 2010 21:27
用powershell寫一個把目前目錄下的程式碼都轉換成utf8的程式(日文也ok)
# 只能轉與系統同編碼的ansi
function tounicode($orginFile = $(throw "input file required"))
{
$data = get-content $orginFile
set-content -value $data $orginFile -encoding utf8
}
# 可以自定來源編碼
function tounicode($orginFile = $(throw "input file required"), $coding = 'Shift-JIS')
{
#$data = get-content $orginFile
- Nov 01 Mon 2010 19:52
關於vtk
雖然官網上只有到5.6.1,但其實在它的git上可以git到5.7.0的版本了,跟它的wiki範例比較同步,
http://www.vtk.org/Wiki/VTK/Examples/Cxx
有時候不能編譯的問題,常常是範例用5.7.0,但你用5.6.1所以功能比較弱。
最近發現這樣強大的vtk果然也是內插神!
http://www.vtk.org/Wiki/VTK/VTK_integration_point_support