private void CreateTexture2() { if (m_Texture2 != null) { return; } const int width = 40; const int height = 40; m_Texture2 = CreateTexture(width, height); }
private void CreateTexture1() { if (m_Texture1 != null) { return; } const int width = 10; const int height = 10; m_Texture1 = CreateTexture(width, height); }
public TextFilter(string text) : base(Renderer.CreateTexture(Renderer.TargetSize), true) { m_SourceTexture = (ISourceTexture)Output.Texture; DrawText(text); }
public TextFilter(string text) { m_Texture = Renderer.CreateTexture(Renderer.TargetSize); DrawText(text); }
private TextFilter(string text, ISourceTexture texture) : base(texture) { m_SourceTexture = texture; DrawText(text); }