Class GpuTexture

java.lang.Object
com.mojang.blaze3d.textures.GpuTexture
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
GlTexture

@Environment(CLIENT) public abstract class GpuTexture extends Object implements AutoCloseable
Mappings:
Namespace Name
named com/mojang/blaze3d/textures/GpuTexture
intermediary com/mojang/blaze3d/textures/GpuTexture
official com/mojang/blaze3d/textures/GpuTexture
  • Field Details

    • format

      private final TextureFormat format
    • width

      private final int width
    • height

      private final int height
    • mipLevels

      private final int mipLevels
    • label

      private final String label
    • addressModeU

      protected AddressMode addressModeU
    • addressModeV

      protected AddressMode addressModeV
    • minFilter

      protected FilterMode minFilter
    • magFilter

      protected FilterMode magFilter
    • useMipmaps

      protected boolean useMipmaps
  • Constructor Details

    • GpuTexture

      public GpuTexture(String label, TextureFormat format, int width, int height, int mipLevels)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lcom/mojang/blaze3d/textures/GpuTexture;<init>(Ljava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;III)V
      intermediary <init> Lcom/mojang/blaze3d/textures/GpuTexture;<init>(Ljava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;III)V
      official <init> Lcom/mojang/blaze3d/textures/GpuTexture;<init>(Ljava/lang/String;Lcom/mojang/blaze3d/textures/TextureFormat;III)V
  • Method Details

    • getWidth

      public int getWidth(int mipLevel)
      Mappings:
      Namespace Name Mixin selector
      named getWidth Lcom/mojang/blaze3d/textures/GpuTexture;getWidth(I)I
      intermediary getWidth Lcom/mojang/blaze3d/textures/GpuTexture;getWidth(I)I
      official getWidth Lcom/mojang/blaze3d/textures/GpuTexture;getWidth(I)I
    • getHeight

      public int getHeight(int mipLevel)
      Mappings:
      Namespace Name Mixin selector
      named getHeight Lcom/mojang/blaze3d/textures/GpuTexture;getHeight(I)I
      intermediary getHeight Lcom/mojang/blaze3d/textures/GpuTexture;getHeight(I)I
      official getHeight Lcom/mojang/blaze3d/textures/GpuTexture;getHeight(I)I
    • getMipLevels

      public int getMipLevels()
    • getFormat

      public TextureFormat getFormat()
    • setAddressMode

      public void setAddressMode(AddressMode addressMode)
      Mappings:
      Namespace Name Mixin selector
      named setAddressMode Lcom/mojang/blaze3d/textures/GpuTexture;setAddressMode(Lcom/mojang/blaze3d/textures/AddressMode;)V
      intermediary setAddressMode Lcom/mojang/blaze3d/textures/GpuTexture;setAddressMode(Lcom/mojang/blaze3d/textures/AddressMode;)V
      official setAddressMode Lcom/mojang/blaze3d/textures/GpuTexture;setAddressMode(Lcom/mojang/blaze3d/textures/AddressMode;)V
    • setAddressMode

      public void setAddressMode(AddressMode addressModeU, AddressMode addressModeV)
      Mappings:
      Namespace Name Mixin selector
      named setAddressMode Lcom/mojang/blaze3d/textures/GpuTexture;setAddressMode(Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/AddressMode;)V
      intermediary setAddressMode Lcom/mojang/blaze3d/textures/GpuTexture;setAddressMode(Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/AddressMode;)V
      official setAddressMode Lcom/mojang/blaze3d/textures/GpuTexture;setAddressMode(Lcom/mojang/blaze3d/textures/AddressMode;Lcom/mojang/blaze3d/textures/AddressMode;)V
    • setTextureFilter

      public void setTextureFilter(FilterMode filter, boolean useMipmaps)
      Mappings:
      Namespace Name Mixin selector
      named setTextureFilter Lcom/mojang/blaze3d/textures/GpuTexture;setTextureFilter(Lcom/mojang/blaze3d/textures/FilterMode;Z)V
      intermediary setTextureFilter Lcom/mojang/blaze3d/textures/GpuTexture;setTextureFilter(Lcom/mojang/blaze3d/textures/FilterMode;Z)V
      official setTextureFilter Lcom/mojang/blaze3d/textures/GpuTexture;setTextureFilter(Lcom/mojang/blaze3d/textures/FilterMode;Z)V
    • setTextureFilter

      public void setTextureFilter(FilterMode minFilter, FilterMode magFilter, boolean useMipmaps)
      Mappings:
      Namespace Name Mixin selector
      named setTextureFilter Lcom/mojang/blaze3d/textures/GpuTexture;setTextureFilter(Lcom/mojang/blaze3d/textures/FilterMode;Lcom/mojang/blaze3d/textures/FilterMode;Z)V
      intermediary setTextureFilter Lcom/mojang/blaze3d/textures/GpuTexture;setTextureFilter(Lcom/mojang/blaze3d/textures/FilterMode;Lcom/mojang/blaze3d/textures/FilterMode;Z)V
      official setTextureFilter Lcom/mojang/blaze3d/textures/GpuTexture;setTextureFilter(Lcom/mojang/blaze3d/textures/FilterMode;Lcom/mojang/blaze3d/textures/FilterMode;Z)V
    • getLabel

      public String getLabel()
    • close

      public abstract void close()
      Specified by:
      close in interface AutoCloseable
    • isClosed

      public abstract boolean isClosed()