com.jblend.graphics.m3d
クラス Texture <Phase3>

java.lang.Object
  |
  +--com.jblend.graphics.m3d.Texture

public class Texture
extends java.lang.Object

テクスチャのクラスです。


コンストラクタの概要
Texture(byte[] data, boolean isSphere)
          テクスチャデータからテクスチャオブジェクトを生成します。
Texture(java.lang.String resource, boolean isSphere)
          テクスチャデータからテクスチャオブジェクトを生成します。
 
メソッドの概要
 boolean isSphereTexture()
          テスクチャが Sphere Mapping 用であるかないかを判別します。
 
クラス java.lang.Object から継承したメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Texture

public Texture(byte[] data,
               boolean isSphere)
テクスチャデータからテクスチャオブジェクトを生成します。

パラメータ:
data - データを表す byte 型の配列
isSphere - Sphere Mapping 用の場合は true、Model Mapping 用の場合は false
例外:
NullPointerException - 引数 data に null が指定された場合に発生する
java.lang.IllegalArgumentException - データが不正な場合に発生する

Texture

public Texture(java.lang.String resource,
               boolean isSphere)
        throws java.io.IOException
テクスチャデータからテクスチャオブジェクトを生成します。

パラメータ:
resource - データのリソース名
isSphere - Sphere Mapping 用の場合は true、Model Mapping 用の場合は false
例外:
NullPointerException - 引数 resource に null が指定された場合に発生する
java.io.IOException - データが存在しない場合または読込がエラーになった場合に発生する
メソッドの詳細

isSphereTexture

public boolean isSphereTexture()
テスクチャが Sphere Mapping 用であるかないかを判別します。

戻り値:
Sphere Mapping 用の場合 true、Model Mapping 用の場合は false


Copyright 2003 Aplix Corporation. All rights reserved. Aplix Confidential and Restricted.