Roland Posted August 1, 2021 Posted August 1, 2021 Solution: Add following lines to CPP\Constants.md #### TextureFormat #### - TEXTURE_FORMAT_UNDEFINED - TEXTURE_RGBA_UINT - TEXTURE_RED - TEXTURE_RG - TEXTURE_RGB - TEXTURE_RGBA - TEXTURE_BGR - TEXTURE_BGRA - TEXTURE_RGB8 - TEXTURE_RGBA8 - TEXTURE_BGR8 - TEXTURE_BGRA8 - TEXTURE_RED16 - TEXTURE_R16 - TEXTURE_RGBA16 - TEXTURE_BC1 - TEXTURE_DXT1 - TEXTURE_BC3 - TEXTURE_DXT5 = TEXTURE_BC3 - TEXTURE_BC5 - TEXTURE_BC7 - TEXTURE_COLOR - TEXTURE_DEPTH Quote Roland Strålberg Website: https://rstralberg.com
Josh Posted August 2, 2021 Posted August 2, 2021 I am having trouble deciding where to document constants. I've been listing them in the relevant command descriptions. You will notice that constants.md isn't actually listed in the table of contents. If I have a link in a the documentation somewhere else, should it link to a page where all the constants are listed? Should it link to a specific anchor link within a single page? Or should different groups of constants be broken up into different pages? These are questions I have not figured out yet. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Roland Posted August 2, 2021 Author Posted August 2, 2021 Ok I see. My vote goes for the last suggestion "different groups of constants be broken up into different pages". I don't know how you divide them up in the source code, but as I see it the same principle should be used there. Not having any global constants.h Quote Roland Strålberg Website: https://rstralberg.com
Josh Posted August 3, 2021 Posted August 3, 2021 I have added the more common formats to the documentation here: https://github.com/Leadwerks/Documentation/blob/master/CPP/CreatePixmap.md I will consider this closed for now but I am open to improvements in the future. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.