-
I am using an easy to use OpenGL wrapper called Raylib. I am in the process of implementing RmlUi but I can't seem to wrap my head around why background colors are not being rendered. Any advice would be very welcome. The examples work correctly. But when I run it in my own code and renderer no color backgrounds work <rml>
<head>
<title>Example</title>
<style>
body {
position: absolute;
top: 50px;
left: 50px;
width: 500px;
height: 500px;
background-color: #ccc;
}
div {
display: block;
height: 150px;
width: 200px;
background-color: #f00;
}
</style>
</head>
<body>
<div/>
</body>
</rml> |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey. My guess is that vertex colors are not applied correctly. Check your renderer and shaders, and ensure that the vertex colors are multiplied with any texture color. The samples use texture-based backgrounds for the most part, so this issue is not immediately apparent there. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Spoke with raylib community. The issue was if there is no texture supplied my code would skip over it. For future reference for anyone. If there is no texture supplied. Return a 2x2 white square as it's texture