• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# LColor类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中LColor的典型用法代码示例。如果您正苦于以下问题:C# LColor类的具体用法?C# LColor怎么用?C# LColor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



LColor类属于命名空间,在下文中一共展示了LColor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: End

 internal void End(LColor col)
 {
     glbase.Transform(this.primitiveType, this.numVertices, this.vertexsBuffer, this.texCoordsBuffer, this.colorsBuffer, this.hasCols, true, col);
     glbase.Send(this.primitiveType, this.numVertices);
     glbase.Clear(m_maxVertices);
     GLEx.GL.EnableTextures();
 }
开发者ID:darragh-murphy,项目名称:LGame,代码行数:7,代码来源:GLBatch.cs


示例2: ParticleSystem

        public ParticleSystem(string defaultSpriteRef, int maxParticles, LColor mask)
        {
            this.maxParticlesPerEmitter = maxParticles;
            this.mask = mask;

            SetDefaultImageName(defaultSpriteRef);
            dummy = CreateParticle(this);
        }
开发者ID:hellogithubtesting,项目名称:LGame,代码行数:8,代码来源:ParticleSystem.cs


示例3: CreateFontImage

 public static LImage CreateFontImage(LFont font, LColor color, string text)
 {
     LImage image = LImage.CreateImage(font.StringWidth(text), font.GetHeight());
     LGraphics g = image.GetLGraphics();
     g.SetFont(font);
     g.DrawString(text, 0, 0, color);
     g.Dispose();
     return image;
 }
开发者ID:207h2Flogintvg,项目名称:LGame,代码行数:9,代码来源:LSTRFont.cs


示例4: AdjustColor

 public void AdjustColor(float r, float g, float b, float a)
 {
     if (color == null)
     {
         color = new LColor(1, 1, 1, 1f);
     }
     color.r += r;
     color.g += g;
     color.b += b;
     color.a += a;
 }
开发者ID:hellogithubtesting,项目名称:LGame,代码行数:11,代码来源:Particle.cs


示例5: Draw

		public Loon.Core.Geom.Point.Point2i Draw(string name, float dx1, float dy1, float dx2,
				float dy2, float sx1, float sy1, float sx2, float sy2,
				float rotation, LColor color) {
			this.Pack();
			if (GLEx.Self != null) {
				PackEntry entry = GetEntry(name);
				if (entry == null) {
					return null;
				}
				if (texture.IsBatch()) {
					texture.Draw(dx1, dy1, dx2, dy2, sx1 + entry.bounds.left, sy1
							+ entry.bounds.top, sx2 + entry.bounds.left, sy2
							+ entry.bounds.top, rotation, color);
				} else {
					GLEx.Self.DrawTexture(texture, dx1, dy1, dx2, dy2, sx1
							+ entry.bounds.left, sy1 + entry.bounds.top, sx2
							+ entry.bounds.left, sy2 + entry.bounds.top, rotation,
							color);
				}
				blittedSize.Set(entry.bounds.Width(), entry.bounds.Height());
			}
			return blittedSize;
		}
开发者ID:207h2Flogintvg,项目名称:LGame,代码行数:23,代码来源:LTexturePack.cs


示例6: DrawOnlyBatch

        public void DrawOnlyBatch(int id, float x, float y, LColor[] c)
        {
			this.Pack();
			PackEntry entry = GetEntry(id);
			if (entry == null) {
				return;
			}
			if (texture.IsBatch()) {
				texture.Draw(x, y, entry.bounds.Width(), entry.bounds.Height(),
						entry.bounds.left, entry.bounds.top, entry.bounds.right,
						entry.bounds.bottom, c);
			}
		}
开发者ID:207h2Flogintvg,项目名称:LGame,代码行数:13,代码来源:LTexturePack.cs


示例7: GLColor

 public void GLColor(LColor c)
 {
     colors.Add(c.Color);
     this.hasCols = true;
 }
开发者ID:hellogithubtesting,项目名称:LGame,代码行数:5,代码来源:XNA_GL.cs


示例8: SetFontColor

        public virtual void SetFontColor(LColor fontColor)
        {
			this.fontColor = fontColor;
		}
开发者ID:207h2Flogintvg,项目名称:LGame,代码行数:4,代码来源:LButton.cs


示例9: ColorRecord

 public ColorRecord(float pos, LColor col)
 {
     this.pos = pos;
     this.col = col;
 }
开发者ID:hellogithubtesting,项目名称:LGame,代码行数:5,代码来源:ConfigEmitter.cs


示例10: AddColorPoint

 public void AddColorPoint(float pos, LColor col)
 {
     colors.Add(new ColorRecord(pos, col));
 }
开发者ID:hellogithubtesting,项目名称:LGame,代码行数:4,代码来源:ConfigEmitter.cs


示例11: SetColor

 public void SetColor(float r, float g, float b, float a)
 {
     if (color == LColor.white)
     {
         color = new LColor(r, g, b, a);
     }
     else
     {
         color.r = r;
         color.g = g;
         color.b = b;
         color.a = a;
     }
 }
开发者ID:207h2Flogintvg,项目名称:LGame,代码行数:14,代码来源:Particle.cs


示例12: DrawSixStart

 public void DrawSixStart(LColor color, int x, int y, int r)
 {
     DrawSixStart(color.Color, x, y, r);
 }
开发者ID:keppelcao,项目名称:LGame,代码行数:4,代码来源:LGraphics.cs


示例13: DrawRTriangle

 public void DrawRTriangle(LColor color, int x, int y, int r)
 {
     DrawRTriangle(color.Color, x, y, r);
 }
开发者ID:keppelcao,项目名称:LGame,代码行数:4,代码来源:LGraphics.cs


示例14: SetColor

 public void SetColor(LColor c)
 {
     if (c == null)
     {
         return;
     }
     this.colorValue = c.Color;
 }
开发者ID:keppelcao,项目名称:LGame,代码行数:8,代码来源:LGraphics.cs


示例15: Set

		private void Set(XMLElement Pack) {
			this.fileName = Pack.GetAttribute("file", null);
			this.name = Pack.GetAttribute("name", fileName);
			int r = Pack.GetIntAttribute("r", -1);
			int g = Pack.GetIntAttribute("g", -1);
			int b = Pack.GetIntAttribute("b", -1);
			int a = Pack.GetIntAttribute("a", -1);
			if (r != -1 && g != -1 && b != -1 && a != -1) {
				colorMask = new LColor(r, g, b, a);
			}
			if (fileName != null) {
				List<XMLElement> blocks = Pack.List("block");
				foreach (XMLElement e  in  blocks) {
					PackEntry entry = new PackEntry(null);
					int id = e.GetIntAttribute("id", count);
					entry.id = id;
					entry.fileName = e.GetAttribute("name", null);
					entry.bounds.left = e.GetIntAttribute("left", 0);
					entry.bounds.top = e.GetIntAttribute("top", 0);
					entry.bounds.right = e.GetIntAttribute("right", 0);
					entry.bounds.bottom = e.GetIntAttribute("bottom", 0);
					if (entry.fileName != null) {
						temps.Put(entry.fileName, entry);
					} else {
						temps.Put(Convert.ToString(id), entry);
					}
					count++;
				}
				this.packing = false;
				this.packed = true;
			}
			this.useAlpha = true;
		}
开发者ID:207h2Flogintvg,项目名称:LGame,代码行数:33,代码来源:LTexturePack.cs


示例16: ClearDraw

 public void ClearDraw(LColor c)
 {
     if (c != null)
     {
         ClearDraw(c.Color);
     }
 }
开发者ID:keppelcao,项目名称:LGame,代码行数:7,代码来源:LGraphics.cs


示例17: DrawPoint

 public void DrawPoint(int x, int y, LColor c)
 {
     DrawPoint(x, y, c.Color);
 }
开发者ID:keppelcao,项目名称:LGame,代码行数:4,代码来源:LGraphics.cs


示例18: Mul

 public void Mul(LColor mulColor)
 {
     Mul(mulColor.Color);
 }
开发者ID:keppelcao,项目名称:LGame,代码行数:4,代码来源:LGraphics.cs


示例19: FourCornersGradient

 public void FourCornersGradient(LColor topLeftColor,
         LColor topRightColor, LColor bottomRightColor,
         LColor bottomLeftColor)
 {
     FourCornersGradient(topLeftColor.Color, topRightColor.Color, bottomRightColor.Color, bottomLeftColor.Color);
 }
开发者ID:keppelcao,项目名称:LGame,代码行数:6,代码来源:LGraphics.cs


示例20: ColorFilter

 public void ColorFilter(LColor color)
 {
     ColorFilter(color.Color);
 }
开发者ID:keppelcao,项目名称:LGame,代码行数:4,代码来源:LGraphics.cs



注:本文中的LColor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# LG类代码示例发布时间:2022-05-24
下一篇:
C# LASTINPUTINFO类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap