Skip to content

Package com.mojang.blaze3d.pipeline

Part 1/1


MainTarget

  • Full name: com.mojang.blaze3d.pipeline.MainTarget
  • Package: com.mojang.blaze3d.pipeline
  • Source: clientOnlycom/mojang/blaze3d/pipeline/MainTarget.java
  • Type: class
  • Modifiers: public
  • Extends: RenderTarget

com.mojang.blaze3d.pipeline.MainTarget#MainTarget(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/MainTarget.java:18
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MainTarget ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: createFrameBuffer().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

MainTarget instance = new MainTarget(0, 0);

RenderCall

  • Full name: com.mojang.blaze3d.pipeline.RenderCall
  • Package: com.mojang.blaze3d.pipeline
  • Source: clientOnlycom/mojang/blaze3d/pipeline/RenderCall.java
  • Type: interface
  • Modifiers: public

com.mojang.blaze3d.pipeline.RenderCall#execute()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderCall.java:8
  • Modifiers: ``
  • Return: void

คืออะไร

สั่งทำงาน execute

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RenderCall instance = ...;
instance.execute();

RenderTarget

  • Full name: com.mojang.blaze3d.pipeline.RenderTarget
  • Package: com.mojang.blaze3d.pipeline
  • Source: clientOnlycom/mojang/blaze3d/pipeline/RenderTarget.java
  • Type: class
  • Modifiers: public abstract

com.mojang.blaze3d.pipeline.RenderTarget#bindRead()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:158
  • Modifiers: public
  • Return: void

คืออะไร

ผูก Read

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), _bindTexture().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RenderTarget instance = ...;
instance.bindRead();

com.mojang.blaze3d.pipeline.RenderTarget#bindWrite(boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:168
  • Modifiers: public
  • Return: void

คืออะไร

ผูก Write

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThreadOrInit(), _glBindFramebuffer(), _viewport().

Parameters

  • boolean bl

ตัวอย่างใช้งาน

RenderTarget instance = ...;
instance.bindWrite(true);

com.mojang.blaze3d.pipeline.RenderTarget#blitAndBlendToScreen(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:194
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ blitAndBlendToScreen ตาม implementation ของ RenderTarget

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), _colorMask(), _disableDepthTest(), _depthMask(), _viewport(), requireNonNull(), setShader(), bindSampler().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

RenderTarget instance = ...;
instance.blitAndBlendToScreen(0, 0);

com.mojang.blaze3d.pipeline.RenderTarget#blitToScreen(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:188
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ blitToScreen ตาม implementation ของ RenderTarget

ทำงานยังไง

เรียกต่อ: _glBindFramebuffer(), _glBlitFrameBuffer().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

RenderTarget instance = ...;
instance.blitToScreen(0, 0);

com.mojang.blaze3d.pipeline.RenderTarget#checkStatus()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:136
  • Modifiers: public
  • Return: void

คืออะไร

ตรวจสอบ Status

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThreadOrInit(), glCheckFramebufferStatus(). สร้างออบเจ็กต์: RuntimeException.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RenderTarget instance = ...;
instance.checkStatus();

com.mojang.blaze3d.pipeline.RenderTarget#clear()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:212
  • Modifiers: public
  • Return: void

คืออะไร

ล้าง clear

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThreadOrInit(), bindWrite(), _clearColor(), _clearDepth(), _clear(), unbindWrite().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RenderTarget instance = ...;
instance.clear();

com.mojang.blaze3d.pipeline.RenderTarget#copyDepthFrom(RenderTarget)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:73
  • Modifiers: public
  • Return: void

คืออะไร

คัดลอก Depth From

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), _glBindFramebuffer(), _glBlitFrameBuffer().

Parameters

  • RenderTarget renderTarget

ตัวอย่างใช้งาน

RenderTarget instance = ...;
RenderTarget renderTarget = ...;
instance.copyDepthFrom(renderTarget);

com.mojang.blaze3d.pipeline.RenderTarget#createBuffers(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:81
  • Modifiers: public
  • Return: void

คืออะไร

สร้าง Buffers

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: viewWidth, viewHeight, width, height, frameBufferId, colorTextureId. เรียกต่อ: assertOnRenderThreadOrInit(), maxSupportedTextureSize(), glGenFramebuffers(), generateTextureId(), _bindTexture(), _texParameter(), _texImage2D(), setFilterMode(). สร้างออบเจ็กต์: IllegalArgumentException.

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

RenderTarget instance = ...;
instance.createBuffers(0, 0);

com.mojang.blaze3d.pipeline.RenderTarget#destroyBuffers()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:52
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ destroyBuffers ตาม implementation ของ RenderTarget

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: depthBufferId, colorTextureId, frameBufferId. เรียกต่อ: assertOnRenderThreadOrInit(), unbindRead(), unbindWrite(), releaseTextureId(), _glBindFramebuffer(), _glDeleteFramebuffers().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RenderTarget instance = ...;
instance.destroyBuffers();

com.mojang.blaze3d.pipeline.RenderTarget#getColorTextureId()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:226
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Color Texture Id

ทำงานยังไง

คืนค่า: this.colorTextureId.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RenderTarget instance = ...;
int result = instance.getColorTextureId();

com.mojang.blaze3d.pipeline.RenderTarget#getDepthTextureId()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:230
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Depth Texture Id

ทำงานยังไง

คืนค่า: this.depthBufferId.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RenderTarget instance = ...;
int result = instance.getDepthTextureId();

com.mojang.blaze3d.pipeline.RenderTarget#RenderTarget(boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:34
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ RenderTarget ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: useDepth, frameBufferId, colorTextureId, depthBufferId.

Parameters

  • boolean bl

ตัวอย่างใช้งาน

RenderTarget instance = new RenderTarget(true);

com.mojang.blaze3d.pipeline.RenderTarget#resize(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:41
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ resize ตาม implementation ของ RenderTarget

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThreadOrInit(), _enableDepthTest(), destroyBuffers(), createBuffers(), _glBindFramebuffer().

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

RenderTarget instance = ...;
instance.resize(0, 0);

com.mojang.blaze3d.pipeline.RenderTarget#setClearColor(float,float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:181
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Clear Color

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 4 statement).

Parameters

  • float f
  • float g
  • float h
  • float i

ตัวอย่างใช้งาน

RenderTarget instance = ...;
instance.setClearColor(0.0F, 0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.pipeline.RenderTarget#setFilterMode(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:121
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Filter Mode

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • int i

ตัวอย่างใช้งาน

RenderTarget instance = ...;
instance.setFilterMode(0);

com.mojang.blaze3d.pipeline.RenderTarget#unbindRead()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:163
  • Modifiers: public
  • Return: void

คืออะไร

ยกเลิกการผูก Read

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), _bindTexture().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RenderTarget instance = ...;
instance.unbindRead();

com.mojang.blaze3d.pipeline.RenderTarget#unbindWrite()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/RenderTarget.java:176
  • Modifiers: public
  • Return: void

คืออะไร

ยกเลิกการผูก Write

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), _glBindFramebuffer().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RenderTarget instance = ...;
instance.unbindWrite();

TextureTarget

  • Full name: com.mojang.blaze3d.pipeline.TextureTarget
  • Package: com.mojang.blaze3d.pipeline
  • Source: clientOnlycom/mojang/blaze3d/pipeline/TextureTarget.java
  • Type: class
  • Modifiers: public
  • Extends: RenderTarget

com.mojang.blaze3d.pipeline.TextureTarget#TextureTarget(int,int,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/pipeline/TextureTarget.java:9
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ TextureTarget ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: assertOnRenderThreadOrInit(), resize().

Parameters

  • int i
  • int j
  • boolean bl

ตัวอย่างใช้งาน

TextureTarget instance = new TextureTarget(0, 0, true);