GameDevelopment/TexTarga/TexTargaCppLib
をテンプレートにして作成
ホーム
検索
最終更新
ヘルプ
Wiki書式ヘルプ(整形ルール)
開始行:
* TexTarga C++ Library [#r668a121]
** Features [#v04cd5c1]
TexTarga C++ Libraryは
TexTarga画像データを扱うためのC++ライブラリです。
主な機能
- 24bit or 32bit Targaのみサポート。
- イメージの横幅、縦幅の取得。
- ピクセルデータの取得。
- TexTargaデータ情報のアクセス。
-- ピクセルフォーマットの取得。
-- コンバート前のピクセルデータの取得。
** Download [#z4fe86e8]
[[http://www.10106.net/~hoboaki/download/textga/textga_cp...
** Example Code [#t14a4c68]
#code(c,){{
#include <textga/textga.h>
void main()
{
// Load TGAFile
::textga::TGAFileLoader loader( "tgaFilePath.tga" );
if ( !loader.isLoaded() )
{
// Load Failed
return;
}
// Standard TGA Check
const ::textga::TGADataAccessor tgaDataAccessor = loa...
if ( !tgaDataAccessor.isSupportedTGA() )
{
// Not supported tga file
return;
}
// Standard TGA Data Access
// tgaDataAccessor.width(); // get width
// tgaDataAccessor.height(); // get height
// tgaDataAccessor.pixelAtIndex(0); // get first pixe...
// and more. see TGADataAccessor.hpp
// TexTarga Check
if ( !tgaDataAccessor.isTexTarga() )
{
// Not tex targa
return;
}
// TexTarga Data Access
// tgaDataAccessor.pixelFormat() // get PixelFormat(s...
// tgaDataAccessor.srcDataPixelAtIndex(0) // get befo...
// and more. see TGADataAccessor.hpp
}
}}
** History [#cc5023fe]
//#comment(below)
//- comment6, http://avida-ed.msu.edu/cgi-bin/mwf/topic_s...
- Ver1.0リリース。 -- [[あっきー]] &new{2007-12-31 (月) 0...
終了行:
* TexTarga C++ Library [#r668a121]
** Features [#v04cd5c1]
TexTarga C++ Libraryは
TexTarga画像データを扱うためのC++ライブラリです。
主な機能
- 24bit or 32bit Targaのみサポート。
- イメージの横幅、縦幅の取得。
- ピクセルデータの取得。
- TexTargaデータ情報のアクセス。
-- ピクセルフォーマットの取得。
-- コンバート前のピクセルデータの取得。
** Download [#z4fe86e8]
[[http://www.10106.net/~hoboaki/download/textga/textga_cp...
** Example Code [#t14a4c68]
#code(c,){{
#include <textga/textga.h>
void main()
{
// Load TGAFile
::textga::TGAFileLoader loader( "tgaFilePath.tga" );
if ( !loader.isLoaded() )
{
// Load Failed
return;
}
// Standard TGA Check
const ::textga::TGADataAccessor tgaDataAccessor = loa...
if ( !tgaDataAccessor.isSupportedTGA() )
{
// Not supported tga file
return;
}
// Standard TGA Data Access
// tgaDataAccessor.width(); // get width
// tgaDataAccessor.height(); // get height
// tgaDataAccessor.pixelAtIndex(0); // get first pixe...
// and more. see TGADataAccessor.hpp
// TexTarga Check
if ( !tgaDataAccessor.isTexTarga() )
{
// Not tex targa
return;
}
// TexTarga Data Access
// tgaDataAccessor.pixelFormat() // get PixelFormat(s...
// tgaDataAccessor.srcDataPixelAtIndex(0) // get befo...
// and more. see TGADataAccessor.hpp
}
}}
** History [#cc5023fe]
//#comment(below)
//- comment6, http://avida-ed.msu.edu/cgi-bin/mwf/topic_s...
- Ver1.0リリース。 -- [[あっきー]] &new{2007-12-31 (月) 0...
ページ名: