mirror of
https://github.com/aap/librw.git
synced 2025-12-19 17:09:51 +00:00
implemented texture raster renderstates
This commit is contained in:
@@ -96,7 +96,11 @@ printScreen(const char *s, float32 x, float32 y)
|
||||
|
||||
s++;
|
||||
}
|
||||
engine->imtexture = curfont->tex;
|
||||
|
||||
rw::SetRenderStatePtr(rw::TEXTURERASTER, curfont->tex->raster);
|
||||
rw::SetRenderState(rw::TEXTUREADDRESS, rw::Texture::WRAP);
|
||||
rw::SetRenderState(rw::TEXTUREFILTER, rw::Texture::NEAREST);
|
||||
|
||||
im2d::RenderIndexedPrimitive(rw::PRIMTYPETRILIST,
|
||||
vertices, curVert, indices, curIndex);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user