# TCastleWindow: simple name (without Base suffix), removed deprecated Window.SceneManager, UTF-16 in WinAPI backend

**URL:** https://forum.castle-engine.io/t/tcastlewindow-simple-name-without-base-suffix-removed-deprecated-window-scenemanager-utf-16-in-winapi-backend/530
**Category:** News
**Created:** [February 20, 2022, 5:44am UTC](https://forum.castle-engine.io/t/tcastlewindow-simple-name-without-base-suffix-removed-deprecated-window-scenemanager-utf-16-in-winapi-backend/530 "2022-02-20T05:44:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [February 20, 2022, 5:44am UTC](https://forum.castle-engine.io/t/tcastlewindow-simple-name-without-base-suffix-removed-deprecated-window-scenemanager-utf-16-in-winapi-backend/530/1 "2022-02-20T05:44:52Z")

</div>

| [![Window with dirty/old glass and lights designed in CGE editor](https://castle-engine.io/wp/wp-content/uploads/2022/02/Zrzut-ekranu-z-2022-02-20-06-23-27-200x117.png)](https://castle-engine.io/wp/wp-content/uploads/2022/02/Zrzut-ekranu-z-2022-02-20-06-23-27.png "Window with dirty/old glass and lights designed in CGE editor") |

Two news about our `TCastleWindow` class:

1. The `TCastleWindow` and `TCastleControl` are now (again) advised to be used through these simple names. 

There is no more need to use the names with `Base` suffix, `TCastleWindowBase` and `TCastleControlBase`. They are now just deprecated aliases to the simpler names without the `Base` suffix.

Underneath, this happened because of a [change I announced at the end of 2021](https://castle-engine.io/wp/2021/12/27/tcastlewindow-scenemanager-removal-of-a-deprecated-property-soon/): The old deprecated `TCastleWindow.SceneManager` and `TCastleControl.SceneManager` are now removed. They were causing complicated dependencies (in the end TCastleWindow / TCastleControl code should not deal with viewport/scenes specifics), and the assumption that “every window starts with a default scene manager” was unnecessarily complicating understanding of CGE, and even the name `SceneManager` was outdated (we call it just “viewport” since a long time). The deprecated `CastleWindowTouch` was also removed — just use `TCastleTouchNavigation`.

2. We now use a Unicode (UTF-16) version of WinAPI throughout our `TCastleWindow` backend on Windows. This fixes support for international characters in window caption and in native open/save dialogs.

This is yet another post when it was hard to find a screenshot expressing the API improvements 🙂 So here’s a rendering of [window glTF model from SketchFab, by Yury Misiyuk](https://sketchfab.com/3d-models/window-4e596e7530d749068fa0aba2902b63df) in _Castle Game Engine editor_. The window glass nicely utilizes the material possibilities of PBR, the reflections of a dirty/old glass are nicely realistic and completely dynamic. Here I show them with lights designed in CGE editor — a feature that is correctly in development.
