FLOOR(3G)
β¨ NAME β¨
okay so, this is the manual for floor from FLOOR(3G) β the function that finds the nearest integer that's less than or equal to whatever you hand it. floor. the floor. you're looking for the floor. π«Ά
πΈ DECLARATION πΈ
here's how you actually call her:
genType floor(genType x);
genDType floor(genDType x);
two flavors, same energy. π
π PARAMETERS π
xβ the value you want evaluated, bestie. that's the one. give it a number, she gives you the floor. β¨
π¦ DESCRIPTION π¦
floor returns a value equal to the nearest integer that is less than or equal to x. that's it. that's the whole thing. she ate and left no crumbs. π₯
β VERSION SUPPORT β
the vibe check across every OpenGL Shading Language version, no cap:
floor(genType) β β in all of them:1.10,1.20,1.30,1.40,1.50,3.30,4.00,4.10,4.20,4.30,4.40,4.50. iconic behavior. πfloor(genDType) β marked-(aka not supported, don't even try) in1.10,1.20,1.30,1.40,1.50,3.30β¦ and then β from4.00all the way through4.10,4.20,4.30,4.40,4.50. she arrived late to the party but she showed UP. π
fr fr, if you're on anything before4.00, thegenDTypeversion is a no. check the version before you ship. π
π SEE ALSO π
trunc()round()
(the whole little math-girl squad. go read them too, iykyk π§)
π COPYRIGHT π
Copyright Β© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
π COPYRIGHT π (yes, again, she said it twice)
Copyright Β© 2011-2014 Khronos Group
mwah, that's the whole page bestie π
β¨ it came from [FIXME: source], stamped 01/03/2018, and it lives under the name FLOOR(3G). go floor something. π¦π
π¦ where this page comes from
- ubuntu jammy: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- ubuntu noble: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms