C# 클래스 Microsoft.Xna.Framework.Graphics.BasicEffect

Built-in effect that supports optional texturing, vertex coloring, fog, and lighting.
상속: Effect, IEffectMatrices, IEffectLights, IEffectFog
파일 보기 프로젝트 열기: procfxgen/MGShaderEditor 1 사용 예제들

공개 메소드들

메소드 설명
BasicEffect ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : Microsoft.Xna.Framework

Creates a new BasicEffect with default parameter settings.

Clone ( ) : Effect

Creates a clone of the current BasicEffect instance.

EnableDefaultLighting ( ) : void

보호된 메소드들

메소드 설명
BasicEffect ( BasicEffect cloneSource ) : Microsoft.Xna.Framework

Creates a new BasicEffect by cloning parameter settings from an existing instance.

OnApply ( ) : bool

Lazily computes derived parameter values immediately before applying the effect.

비공개 메소드들

메소드 설명
CacheEffectParameters ( BasicEffect cloneSource ) : void

Looks up shortcut references to our effect parameters.

메소드 상세

BasicEffect() 보호된 메소드

Creates a new BasicEffect by cloning parameter settings from an existing instance.
protected BasicEffect ( BasicEffect cloneSource ) : Microsoft.Xna.Framework
cloneSource BasicEffect
리턴 Microsoft.Xna.Framework

BasicEffect() 공개 메소드

Creates a new BasicEffect with default parameter settings.
public BasicEffect ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : Microsoft.Xna.Framework
device Microsoft.Xna.Framework.Graphics.GraphicsDevice
리턴 Microsoft.Xna.Framework

Clone() 공개 메소드

Creates a clone of the current BasicEffect instance.
public Clone ( ) : Effect
리턴 Effect

EnableDefaultLighting() 공개 메소드

public EnableDefaultLighting ( ) : void
리턴 void

OnApply() 보호된 메소드

Lazily computes derived parameter values immediately before applying the effect.
protected OnApply ( ) : bool
리턴 bool