From ed254a39a083c097475ce9516c6cfd134faaaa75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=ADSollace?= Date: Fri, 24 Jan 2020 12:11:24 +0200 Subject: [PATCH] Mapped FrameBufferInfo (#1010) * Mapped FrameBufferInfo * FrameBufferInfo -> FramebufferInfo * @Liach propose we use phrases instead of full sentences for jd tags. --- .../blaze3d/platform/FramebufferInfo.mapping | 19 ++++++++++++++++--- .../blaze3d/platform/GlStateManager.mapping | 5 +++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/mappings/com/mojang/blaze3d/platform/FramebufferInfo.mapping b/mappings/com/mojang/blaze3d/platform/FramebufferInfo.mapping index c98ac14081..3e53144f50 100644 --- a/mappings/com/mojang/blaze3d/platform/FramebufferInfo.mapping +++ b/mappings/com/mojang/blaze3d/platform/FramebufferInfo.mapping @@ -1,4 +1,17 @@ CLASS net/minecraft/class_4492 com/mojang/blaze3d/platform/FramebufferInfo - FIELD field_20457 target I - FIELD field_20458 renderBufferTarget I - FIELD field_20460 attachment I + COMMENT Contains global constants for the frame buffer and frame buffer states, + COMMENT normalized to the current implementation running on the target system. + FIELD field_20457 FRAME_BUFFER I + FIELD field_20458 RENDER_BUFFER I + FIELD field_20459 COLOR_ATTACHMENT I + FIELD field_20460 DEPTH_ATTACHMENT I + FIELD field_20461 FRAME_BUFFER_COMPLETE I + COMMENT {@see GL30#GL_FRAMEBUFFER_COMPLETE} + FIELD field_20462 FRAME_BUFFER_INCOMPLETE_ATTACHMENT I + COMMENT {@see GL30#GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT} + FIELD field_20463 FRAME_BUFFER_INCOMPLETE_MISSING_ATTACHMENT I + COMMENT {@see GL30#GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT} + FIELD field_20464 FRAME_BUFFER_INCOMPLETE_DRAW_BUFFER I + COMMENT {@see GL30#GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER} + FIELD field_20465 FRAME_BUFFER_INCOMPLETE_READ_BUFFER I + COMMENT {@see GL30#GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER} diff --git a/mappings/com/mojang/blaze3d/platform/GlStateManager.mapping b/mappings/com/mojang/blaze3d/platform/GlStateManager.mapping index b2dac7ca33..535fdbea8c 100644 --- a/mappings/com/mojang/blaze3d/platform/GlStateManager.mapping +++ b/mappings/com/mojang/blaze3d/platform/GlStateManager.mapping @@ -176,6 +176,11 @@ CLASS net/minecraft/class_4493 com/mojang/blaze3d/platform/GlStateManager METHOD method_21972 multMatrix (Ljava/nio/FloatBuffer;)V ARG 0 matrix METHOD method_21973 initFramebufferSupport (Lorg/lwjgl/opengl/GLCapabilities;)Ljava/lang/String; + COMMENT Configures the frame buffer and populates {@link FrameBufferInfo} with the appropriate constants + COMMENT for the current GLCapabilities. + COMMENT + COMMENT @returns human-readable string representing the selected frame buffer technology. + COMMENT @throws IllegalStateException if no known frame buffer technology is supported. ARG 0 capabilities METHOD method_21974 depthMask (Z)V ARG 0 mask