#include <nnsys/g2d/g2di_Char.h>
#ifdef NNS_G2D_UNICODE
#define NNS_G2D_TRANSCODE(str) L##str
typedef wchar_t NNSG2dChar;
#else
#define NNS_G2D_TRANSCODE(str) str
typedef char NNSG2dChar;
#endif
文字列処理ルーチンが扱う文字種を切り替えます。
NNS_G2D_UNICODE が定義されていないと char を文字種として扱います。
定義されていると wchar_t を文字種として扱います。
NNS_G2D_UNICODE の定義はヘッダファイルを include する前に行ってください。
文字種の切り替えのためにライブラリを再ビルドする必要はありません。
// Unicode を使う
#define NNS_G2D_UNICODE
#include <nitro.h>
#include <nnsys/g2d/g2d_Font.h>
#include <nnsys/g2d/g2d_CharCanvas.h>
#include <nnsys/g2d/g2d_TextCanvas.h>
// .....
2005/05/25 初版