glNormal3d function
Sets the current normal vector.
Syntax
void WINAPI glNormal3d(
GLdouble nx,
GLdouble ny,
GLdouble nz
);
Parameters
-
nx
-
Specifies the x-coordinate for the new current normal vector.
-
ny
-
Specifies the y-coordinate for the new current normal vector.
-
nz
-
Specifies the z-coordinate for the new current normal vector.
Return value
This function does not return a value.
Remarks
The current normal is set to the given coordinates whenever you call the glNormal3dfunction.
Byte, short, or integer arguments are converted to floating-point format by using a linear mapping that maps the most positive representable integer value to 1.0, and the most negative representable integer value to -1.0.
Normals specified by usingglNormal3d need not have unit length. If normalization is enabled, then normals specified with glNormal3d are normalized after transformation. You can control normalization by using glEnable and glDisable with the argument GL_NORMALIZE. By default, normalization is disabled. You can update the current normal at any time. In particular, you can callglNormal3dbetween a call to glBegin and the corresponding call to glEnd. The following functions retrieve information related to glNormal3d:
glGet with argument GL_CURRENT_NORMAL
glIsEnable with argument GL_NORMALIZE
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
Library |
|
DLL |
|
See also
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기