类 JImTextureID
java.lang.Object
org.ice1000.jimgui.JImTextureID
Cannot use after closing the current window
- 从以下版本开始:
- v0.2
-
字段概要
字段 -
方法概要
修饰符和类型方法说明static @NotNull JImTextureIDfromBytes(byte @NotNull [] rawData)Create a texture from in-memory filesstatic @NotNull JImTextureIDfromExistingID(long nativeObjectPtr, int width, int height)static @NotNull JImTextureIDCreate a texture from file.static @NotNull JImTextureIDstatic @NotNull JImTextureIDCreate a texture from file.static @NotNull JImTextureIDCreate a texture from file.
-
字段详细资料
-
width
public final int width -
height
public final int height
-
-
方法详细资料
-
fromFile
-
fromUri
Create a texture from file.- 参数:
uri- file path- 返回:
- the texture
- 抛出:
IllegalStateException- if load failed
-
fromFile
Create a texture from file.- 参数:
file- file instance- 返回:
- the texture
- 抛出:
IllegalStateException- if load failed
-
fromPath
Create a texture from file.- 参数:
path- file path- 返回:
- the texture
- 抛出:
IllegalStateException- if load failed
-
fromBytes
Create a texture from in-memory files- 参数:
rawData- raw memory data, directly passed to C++- 返回:
- the texture
- 抛出:
IllegalStateException- if native interface cannot create texture
-
fromExistingID
@NotNull public static @NotNull JImTextureID fromExistingID(long nativeObjectPtr, int width, int height)- 参数:
nativeObjectPtr- existing texture id, likeGLuintin glfwwidth- size, used inJImWidgets.image(JImTextureID)height- size, used inJImWidgets.image(JImTextureID)- 返回:
- created texture
-