FramebufferFormat.fromActive constructor

FramebufferFormat.fromActive(
  1. ChronosGL cgl
)

Implementation

FramebufferFormat.fromActive(ChronosGL cgl)
    : format = cgl.getParameter(GL_IMPLEMENTATION_COLOR_READ_FORMAT),
      type = cgl.getParameter(GL_IMPLEMENTATION_COLOR_READ_TYPE) {
  channels = TextureChannelsByType(format);
}