Just some renaming. Start moving away from the "thin3d" name

This commit is contained in:
Henrik Rydgard committed 2017-01-30 14:38:31 +01:00
1 parent 1044796de2
commit 20d9e60a67
34 files changed
+128 -133

No files matched your search

+2 -2
View File
@@ -78,7 +78,7 @@ void AsyncImageFileView::SetFilename(std::string filename) {
void AsyncImageFileView::Draw(UIContext &dc) {
using namespace Draw;
if (!texture_ && !textureFailed_ && !filename_.empty()) {
texture_ = CreateTextureFromFile(dc.GetThin3DContext(), filename_.c_str(), DETECT);
texture_ = CreateTextureFromFile(dc.GetDrawContext(), filename_.c_str(), DETECT);
if (!texture_)
textureFailed_ = true;
}
@@ -90,7 +90,7 @@ void AsyncImageFileView::Draw(UIContext &dc) {
// TODO: involve sizemode
if (texture_) {
dc.Flush();
dc.GetThin3DContext()->BindTexture(0, texture_->GetTexture());
dc.GetDrawContext()->BindTexture(0, texture_->GetTexture());
dc.Draw()->Rect(bounds_.x, bounds_.y, bounds_.w, bounds_.h, color_);
dc.Flush();
dc.RebindTexture();