소스 검색

adding support for opengl polygon offset functions

pull/4580/head
unknown 2 주 전
부모
커밋
4735f5d42e
1개의 변경된 파일28개의 추가작업 그리고 0개의 파일을 삭제
  1. +28
    -0
      src/rlgl.h

+ 28
- 0
src/rlgl.h 파일 보기

@ -691,6 +691,13 @@ RLAPI void rlDisableSmoothLines(void); // Disable line aliasing
RLAPI void rlEnableStereoRender(void); // Enable stereo rendering
RLAPI void rlDisableStereoRender(void); // Disable stereo rendering
RLAPI bool rlIsStereoRenderEnabled(void); // Check if stereo render is enabled
RLAPI void rlEnablePolygonOffsetFill(void); // Enable depth offset for faces
RLAPI void rlDisablePolygonOffsetFill(void); // Disable depth offset for faces
RLAPI void rlEnablePolygonOffsetLine(void); // Enable depth offset for lines
RLAPI void rlDisablePolygonOffsetLine(void); // Disable depth offset for lines
RLAPI void rlEnablePolygonOffsetPoint(void); // Enable depth offset for points
RLAPI void rlDisablePolygonOffsetPoint(void); // Disable depth offset for points
RLAPI void rlSetPolygonOffset(float factor, float units);// Set polygon depth offset
RLAPI void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a); // Clear color buffer with color
RLAPI void rlClearScreenBuffers(void); // Clear used screen buffers (color and depth)
@ -2048,6 +2055,27 @@ bool rlIsStereoRenderEnabled(void)
#endif
}
// Enable depth offset for faces
void rlEnablePolygonOffsetFill(void) { glEnable(GL_POLYGON_OFFSET_FILL); }
// Disable depth offset for faces
void rlDisablePolygonOffsetFill(void) { glDisable(GL_POLYGON_OFFSET_FILL); }
// Enable depth offset for lines
void rlEnablePolygonOffsetLine(void) { glEnable(GL_POLYGON_OFFSET_LINE); }
// Disable depth offset for lines
void rlDisablePolygonOffsetLine(void) { glDisable(GL_POLYGON_OFFSET_LINE); }
// Enable depth offset for points
void rlEnablePolygonOffsetPoint(void) { glEnable(GL_POLYGON_OFFSET_POINT); }
// Disable depth offset for points
void rlDisablePolygonOffsetPoint(void) { glDisable(GL_POLYGON_OFFSET_POINT); }
// Set polygon depth offset
void rlSetPolygonOffset(float factor, float units) { glPolygonOffset(factor, units); }
// Clear color buffer with color
void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
{

||||||
x
 
000:0
불러오는 중...
취소
저장