News
Scenome 22.33 — 8/21/2022
Release details are described below.
- Scenome Scripting Language API.
Added OpenGL texture format info to <ImageFormatQuery>.
This makes it much easier to obtain the correct GL components, GL format, and GL pixel
format required for OpenGL calls such as glTexImage2D( ... ) and similar.
For example: the new data interfaces in <ImageFormatQuery> make it possible
to retrieve correct values for the parameters GLint internal format,
GLenum format, and GLenum type,
as shown on the link above for the glTexImage2D( ... ) documentation.
// For example: auto ImageFormatQuery a_oQuery; int a_ePixelFormat = Enum.IPF_8888_ARGB(); int a_eGlComponents = a_oQuery.GetGlComponents( a_ePixelFormat ); // a_eGlComponents = GL_RGBA8 int a_eGlColorFormat = a_oQuery.GetGlColorFormat( a_ePixelFormat ); // a_eGlColorFormat = GL_BGRA int a_eGlPixelFormat = a_oQuery.GetGlPixelFormat( a_ePixelFormat ); // a_eGlPixelFormat = GL_UNSIGNED_BYTE int a_eGlImageFormat = a_oQuery.GetGlImageFormat( a_ePixelFormat ); // a_eGlImageFormat = GL_RGBA8
- Scenome Scripting Language API. In <Group> data interfaces, renamed <Group>::GetBufferOfTypes( ... ) and <Group>::GetBufferOfDerivedTypes( ... ) to <Group>::GetViewOfType( ... ) and <Group>::GetViewOfDerivedType( ... ) respectively. These new names better reflect the purpose of these functions, which is to return a <NodeBuffer> object that is a view of these types in the <Group>.