Skip to content

Package com.mojang.blaze3d

Part 1/1


Blaze3D

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

com.mojang.blaze3d.Blaze3D#getTime()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/Blaze3D.java:14
  • Modifiers: public static
  • Return: double

คืออะไร

อ่านค่า Time

ทำงานยังไง

เรียกต่อ: glfwGetTime(). คืนค่า: GLFW.glfwGetTime().

Parameters

  • ไม่มี

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

double result = Blaze3D.getTime();

com.mojang.blaze3d.Blaze3D#youJustLostTheGame()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/Blaze3D.java:10
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ youJustLostTheGame ตาม implementation ของ Blaze3D

ทำงานยังไง

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

Parameters

  • ไม่มี

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

Blaze3D.youJustLostTheGame();

ProjectionType

  • Full name: com.mojang.blaze3d.ProjectionType
  • Package: com.mojang.blaze3d
  • Source: clientOnlycom/mojang/blaze3d/ProjectionType.java
  • Type: enum
  • Modifiers: public

com.mojang.blaze3d.ProjectionType#applyLayeringTransform(Matrix4f,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/ProjectionType.java:25
  • Modifiers: public
  • Return: void

คืออะไร

นำไปใช้ Layering Transform

ทำงานยังไง

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

Parameters

  • Matrix4f matrix4f
  • float f

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

ProjectionType instance = ...;
Matrix4f matrix4f = ...;
instance.applyLayeringTransform(matrix4f, 0.0F);

com.mojang.blaze3d.ProjectionType#vertexSorting()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/ProjectionType.java:21
  • Modifiers: public
  • Return: VertexSorting

คืออะไร

ดำเนินการ vertexSorting ตาม implementation ของ ProjectionType

ทำงานยังไง

คืนค่า: this.vertexSorting.

Parameters

  • ไม่มี

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

ProjectionType instance = ...;
VertexSorting result = instance.vertexSorting();

TracyBootstrap

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

com.mojang.blaze3d.TracyBootstrap#setup()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/TracyBootstrap.java:13
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ setup ตาม implementation ของ TracyBootstrap

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: load(), isAvailable(), addListener(), message(), messageColor().

Parameters

  • ไม่มี

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

TracyBootstrap.setup();

TracyFrameCapture

  • Full name: com.mojang.blaze3d.TracyFrameCapture
  • Package: com.mojang.blaze3d
  • Source: clientOnlycom/mojang/blaze3d/TracyFrameCapture.java
  • Type: class
  • Modifiers: public
  • Implements: AutoCloseable

com.mojang.blaze3d.TracyFrameCapture#capture(RenderTarget)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/TracyFrameCapture.java:57
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ capture ตาม implementation ของ TracyFrameCapture

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: fence, capturedThisFrame, targetWidth, targetHeight, lastCaptureDelay. เรียกต่อ: resize(), _glBindFramebuffer(), _glBlitFrameBuffer(), bind(), _readPixels(). สร้างออบเจ็กต์: GpuFence.

Parameters

  • RenderTarget renderTarget

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

TracyFrameCapture instance = ...;
RenderTarget renderTarget = ...;
instance.capture(renderTarget);

com.mojang.blaze3d.TracyFrameCapture#close()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/TracyFrameCapture.java:100
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: fence. เรียกต่อ: destroyBuffers().

Parameters

  • ไม่มี

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

TracyFrameCapture instance = ...;
instance.close();

com.mojang.blaze3d.TracyFrameCapture#endFrame()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/TracyFrameCapture.java:94
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ endFrame ตาม implementation ของ TracyFrameCapture

ทำงานยังไง

แก้ state: lastCaptureDelay, capturedThisFrame. เรียกต่อ: markFrame().

Parameters

  • ไม่มี

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

TracyFrameCapture instance = ...;
instance.endFrame();

com.mojang.blaze3d.TracyFrameCapture#upload()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/TracyFrameCapture.java:80
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ upload ตาม implementation ของ TracyFrameCapture

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. แก้ state: fence. เรียกต่อ: awaitCompletion(), read(), frameImage(), data().

Parameters

  • ไม่มี

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

TracyFrameCapture instance = ...;
instance.upload();