icetPhysicalRenderSize(3)

πŸ’– icetPhysicalRenderSize(3) πŸ’–

okay bestie, welcome to the IceT Reference ✨ this one's called icetPhysicalRenderSize and it's literally about setting the size of the images that get rendered. lowkey iconic, no cap πŸŽ€


🌸 NAME 🌸

icetPhysicalRenderSize β€” set the size of images that are rendered πŸ–ΌοΈβœ¨


πŸ¦‹ Synopsis πŸ¦‹

#include <IceT.h>

void icetPhysicalRenderSize(   IceTInt   width,
                               IceTInt   height  );

πŸ‘‘ Description πŸ‘‘

so basically πŸ’… you call icetPhysicalRenderSize to specify the size of the images that are rendered. this is the size of image that the draw callback is expected to render β€” and the draw callback is the one you set with icetDrawCallback, iykyk.

the width and height get captured in the ICET_PHYSICAL_RENDER_WIDTH and ICET_PHYSICAL_RENDER_HEIGHT state variables. periodt. πŸ’Ύ

here's the tea though πŸ“ β€” the size of the images that are rendered do not have to be the same size as the tile they're rendering, as long as they are not smaller in any dimension. and fr fr, when you're rendering multiple tiles it can often save time to render larger images. still, by default the physical render size is set to the size of the tiles in icetAddTile, because that's the most common use case. makes sense bestie 🌈

and one more thing πŸ‘€ β€” when you're using the OpenGL rendering layer, the physical rendering size gets overridden to the size of the OpenGL viewport in each call to icetGLDrawFrame. so like, don't be surprised, it's giving override energy 😌


πŸ’€ Errors πŸ’€

None. literally none. not a single one. slay πŸ’…βœ¨


πŸ™ˆ Warnings πŸ™ˆ

  • ICET_INVALID_VALUE β€” the width or height you specified is smaller than that for the largest tile. so like… don't do that bestie, it's not the vibe 😭

🧚 Bugs 🧚

None known. flawless behaviour, no notes πŸ‘‘


Copyright (C)2010 Sandia Corporation

Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.

This source code is released under the New BSD License. 🫢


⭐ See Also ⭐


and that's the whole page bestie!! this was the IceT Reference, dated August 9, 2010 🌸 go forth and render at the correct size, mwah πŸ’–πŸ¦‹βœ¨