cascardo/movie.git
15 years agoRewrite this one later. optimization
Thadeu Lima de Souza Cascardo [Thu, 14 Aug 2008 19:12:36 +0000 (16:12 -0300)]
Rewrite this one later.

15 years agoAdded some functions to scale SDL Surfaces using cairo
Thadeu Lima de Souza Cascardo [Wed, 13 Aug 2008 22:50:45 +0000 (19:50 -0300)]
Added some functions to scale SDL Surfaces using cairo

15 years agoCalculates the points before showing the video
Thadeu Lima de Souza Cascardo [Wed, 13 Aug 2008 22:32:51 +0000 (19:32 -0300)]
Calculates the points before showing the video

Instead of calculating each point just before showing a frame, calculate
all of them and store them on an array that we use to get the next
center of image.

15 years agoReturn the center of the image instead of the top-left corner
Thadeu Lima de Souza Cascardo [Tue, 12 Aug 2008 08:10:15 +0000 (05:10 -0300)]
Return the center of the image instead of the top-left corner

15 years agoDo not use fullscreen in the development version.
Thadeu Lima de Souza Cascardo [Tue, 12 Aug 2008 07:53:22 +0000 (04:53 -0300)]
Do not use fullscreen in the development version.

15 years agoRead the points from a file.
Thadeu Lima de Souza Cascardo [Tue, 12 Aug 2008 07:48:34 +0000 (04:48 -0300)]
Read the points from a file.

15 years agoUse Bresenham to draw the line between faces
Thadeu Lima de Souza Cascardo [Tue, 12 Aug 2008 07:01:18 +0000 (04:01 -0300)]
Use Bresenham to draw the line between faces

This solves the problem of the slope and direction when drawing lines.

15 years agoMoves through a list of points
Thadeu Lima de Souza Cascardo [Tue, 12 Aug 2008 05:28:03 +0000 (02:28 -0300)]
Moves through a list of points

Given a list of points, it will loop over them and show each point
centered on the screen, moving in a straight line between them. However,
it only works with lines with a slope of one.

15 years agoShows a moving image
Thadeu Lima de Souza Cascardo [Tue, 12 Aug 2008 04:59:06 +0000 (01:59 -0300)]
Shows a moving image

It shows 30 frames per second of a piece of a image moving from its
top-left corner to its bottom-right corner.

15 years agoShows an image
Thadeu Lima de Souza Cascardo [Tue, 12 Aug 2008 03:36:06 +0000 (00:36 -0300)]
Shows an image

This simply shows an image from my home, without resizing it, until the
user presses a key.