Duysau’s world

A world without IT

object.cpp

leave a comment »


#include “object.h”
#include “texture.h”

Đọc tiếp »

Written by duysau

Tháng Mười Một 12, 2008 lúc 12:38 sáng

Posted in Source

Tagged with ,

object.h

leave a comment »


#ifndef _OBJECT_H
#define _OBJECT_H
#include “glui.h”
Đọc tiếp »

Written by duysau

Tháng Mười Một 12, 2008 lúc 12:35 sáng

Posted in Source

Tagged with ,

BTTTH2

leave a comment »

Chủ đề: Tập Tin Hình Ảnh *.PCX và *.BMP

chương trình PCXBMP_MSSV, cách thức thi hành như sau:

PCXBMP_MSSV <i> <filenamein_mssv> <filenameout_mssv>

Yêu cầu của chương trình:

a. Đọc dữ liệu của file PCX (hoặc BMP), giải nén dữ liệu điểm ảnh (nếu có) và chuyển file PCX (BMP) sang file BMP (PCX)

b. Ý nghĩa các thông số:

+ PCXBMP_MSSV: tên chương trình (thay MSSV bằng mã số SV của bạn)

+ i = 1: chuyển file PCX sang BMP, file BMP không cần nén

+ i = 2: chuyển file BMP sang PCX (nén RLE PCX)

+ filenamein_mssv.pcx: đường dẫn đến file pcx nhập

+ filenameout_mssv.pcx: đường dẫn đến file pcx xuất

Ví dụ: PCXBMP_0612001 1 D:\anh.pcx D:\anh.bmp

hoặc PCXBMP_0612001 2 D:\anh.bmp D:\anh.pcx

c. Giới hạn ảnh nhập kích thước không quá 1024×768 pixels.

d. Chỉ xử lý ảnh dạng blackwhite, grayscale, index color và 24 bit màu [5]

e. test chương trình của mình bằng file TestBT2.bat (mở file bằng Notepad để thay đổi các thông số file name và option)

Written by duysau

Tháng Mười Một 11, 2008 lúc 11:53 chiều

light.h

leave a comment »


#ifndef _LIGHT_H
#define _LIGHT_H
#include “glui.h”
Đọc tiếp »

Written by duysau

Tháng Mười Một 11, 2008 lúc 12:07 sáng

Posted in Source

Tagged with ,

light.cpp

leave a comment »


#include “light.h”
#include “texture.h”
int light0_enabled = 1;

Đọc tiếp »

Written by duysau

Tháng Mười Một 11, 2008 lúc 12:03 sáng

Posted in Source

Tagged with ,

texture.cpp

leave a comment »


#include “texture.h”

TEXCOORDS arrTEXCOORDS[4] = {{0.0f, 0.0f},
Đọc tiếp »

Written by duysau

Tháng Mười Một 10, 2008 lúc 11:51 chiều

Posted in Source

Tagged with ,

transform.cpp

leave a comment »


#include “transform.h”
#include “texture.h” // define PROP_CLOSE_ID
Đọc tiếp »

Written by duysau

Tháng Mười Một 10, 2008 lúc 11:46 chiều

Posted in Source

Tagged with ,

CS_3D.cpp

leave a comment »


#include “glui.h”
#include “glut.h”
#include
Đọc tiếp »

Written by duysau

Tháng Mười Một 10, 2008 lúc 11:42 chiều

Posted in Source

Tagged with ,

glui.h

leave a comment »


/****************************************************************************

 

  GLUI User Interface Toolkit (LGPL)

Đọc tiếp »

Written by duysau

Tháng Mười Một 10, 2008 lúc 11:37 chiều

Posted in Source

Tagged with ,

fog.h

leave a comment »


#ifndef _FOG_H
#define _FOG_H
#include “glui.h”
Đọc tiếp »

Written by duysau

Tháng Mười Một 10, 2008 lúc 11:32 chiều

Posted in Source

Tagged with ,

Follow

Get every new post delivered to your Inbox.