Comments (1)
Original comment by Anonymous.
Original reporter: Dalfy
I added five functions to the texture object :
getOriginalWidth() : This function can be redefined in renderer to report the initial with of the image
getOriginalHeight(): This function can be redefined in renderer to report the
inital height of the image
updateScales() : This function have to be called after each texture loading in order to update the scales cached in the texture. This is mainly done within loadFrom ... files ?
getXScale() : Used in the imageset to computes pixels in the width
getYScale() : Used in the imageset to computes pixels in the height
The image set now take in account the scaling applyed while loading the texture if the renderer redefines the getOriginalXXX() function and call updateScales. You can check Irrlicht renderer to see this feature in action.
I considered this issue resolved cause its now a problem of each renderer. At the moment renderer status is :
IrrlichtRenderer: Support Texture scaling
OpenGLGUIRenderer: No texture scaling in openGL so its not needed
from cegui.
Related Issues (20)
- CGUIERROR std HOT 2
- An error in MinizipResourceProvider
- Ogre-next support
- error when trying to build HOT 4
- CXX_STANDARD 17 HOT 4
- failing to build 57668aac4 on Linux/Debian/x86-64 sid
- Drop List of Combo-box : click on scrollbar button hides the Drop List HOT 3
- Combobox: if has set ReadOnly=true then click to editbox should show drop list HOT 1
- Please open Github Discussions HOT 2
- Failed to build on MSYS2 MINGW64 HOT 2
- Please consider switching to PCRE2 HOT 1
- Please upgrade the connection on cegui.org.uk to https HOT 1
- How to build without Direct3D renderer? HOT 1
- CEGUI string to std string in the dev build, how? HOT 2
- Editbox, backspace and enter key HOT 1
- CEGUI 0.8.7 with Ogre 1.10.11 renderer HOT 1
- Crash in Combo-box if it is expanded and you hide/remove screen by ESC (GUI context is null)
- Executables not being built for CEGUI sample code HOT 9
- Cannot Find Lua HeaderFile HOT 1
- CEGUI - CEGUIOgreRenderer-0.dll not found HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cegui.