コード例 #1
0
ファイル: MRTFramebuffer.cs プロジェクト: whztt07/vengine
 public Vector4h[] GetImageForward()
 {
     GL.BindTexture(TextureTarget.Texture2D, TexForward);
     var pixels = new OpenTK.Vector4h[Width * Height];
     GL.GetTexImage<Vector4h>(TextureTarget.Texture2D, 0, PixelFormat.Rgba, PixelType.HalfFloat, pixels);
     return pixels;
 }
コード例 #2
0
        //public GLVertex()
        //{
        //    m_v3Position.X = 0;
        //    m_v3Position.Y = 0;
        //    m_v3Position.Z = 0;

        //    m_v4Color.X = (OpenTK.Half)0;
        //    m_v4Color.Y = (OpenTK.Half)0;
        //    m_v4Color.Z = (OpenTK.Half)0;
        //    m_v4Color.W = (OpenTK.Half)0;

        //    m_v2UV.X = 0;
        //    m_v2UV.Y = 0;
        //}

        public GLVertex(OpenTK.Vector3 a_v3Position, OpenTK.Vector4h a_v4Color, OpenTK.Vector2 a_v2UV)
        {
            m_v3Position = a_v3Position;
            m_v4Color    = a_v4Color;
            m_v2UV       = a_v2UV;
        }