CODECUBE VENTURES

XNA Video Component Progress

The project is coming along nicely ... I just finished a nice refactoring session which cleans up a lot of the code I had written. Mainly along the lines of the runtime classes ... currently, the usage looks something like this:

private SpriteBatch batch;

private Video vid;

...

protected override void LoadGraphicsContent(bool loadAllContent)

{

if (loadAllContent)

{

vid = content.Load

vid.Play();

}

}

protected override void Update(GameTime gameTime)

{

vid.Update();

base.Update(gameTime);

}

protected override void Draw(GameTime gameTime)

{

graphics.GraphicsDevice.Clear(Color.CornflowerBlue);

batch.Begin();

batch.Draw(vid.CurrentTexture, new Vector2(0, 0), Color.White);

batch.End();

base.Draw(gameTime);

}

I'm currently preparing for the preview release of the component -- which I'm anticipating will come sometime in the next few weeks.

Latest post: Digging Up the First Version of CodeCube

See more in the archives