Commit Graph

85 Commits

Author SHA1 Message Date
Émilie Feral
804168ec76 [kandinsky] Rasterize some non-ASCII glyphs
Change-Id: I7e8ac19de72a35621a7101b3bf4686e5e7b6763e
2017-01-27 11:52:32 +01:00
Émilie Feral
f51ae5db12 [kandinsky] Introduce two fonts: small font and large font
Change-Id: I502dfa88d627b09ac5af76155140af63547025cd
2017-01-27 11:14:01 +01:00
Émilie Feral
fed6664b42 [kandinsky] Correct error: clip the pixels if the rect has been clipped
Change-Id: If4230d49fbea7d7c12d79160a6d52345c570d54f
2016-12-15 13:51:40 +01:00
Émilie Feral
12d2b2311e [Kandinsky] Create inline method min and max
Change-Id: Ia3b3ef4373a9ac47d1612d3cf31a8c4d0c850e5a
2016-12-08 17:10:36 +01:00
Émilie Feral
5212c95454 [Kandinsky] Add methods in context to blend string
Change-Id: I7d889eea4667f35cd62d6e0bcabb8b8e9861a81e
2016-12-08 15:21:52 +01:00
Romain Goyet
d6e96fe143 [kandinsky] Explicit color constructors
Change-Id: Ifd4a0c281a7c6aded225d06295f4d79039e4e848
2016-11-21 14:06:10 +01:00
Émilie Feral
a96490d232 [Kandinsky] change method name: blendRectWithMask
Change-Id: Iea893d2d545aa792c305a7d5880516a7f25e928c
2016-11-18 11:46:30 +01:00
Romain Goyet
4eae83278d Factorize the HOSTCC/HOSTCXX definition
Change-Id: I449289e999238c7ca54974e071577d06130991a9
2016-11-05 15:07:34 +01:00
Émilie Feral
ee02edee35 [escher] In text view, clean how exception (nullptr) are handled
Change-Id: Ibd1c3939c910a3da741bb92f8b341e02cf0bb63c
2016-10-14 12:24:32 +02:00
Émilie Feral
7ba8c9e0e8 [kandinsky] add method to test equality/inequality between KDPoints
Change-Id: I39d3c66e2e3c32adc386e050b221725620e8919b
2016-10-12 17:39:54 +02:00
Romain Goyet
0e26e1b2b7 [kandinsky] Add an equality operator on KDRect
Change-Id: Id9d1ce04ecc8869d221c5f6db5faac47bdb391bd
2016-10-04 17:06:19 +02:00
Romain Goyet
270b241d11 [kandinsky] Optimize KDColor::blend
Change-Id: Icb1701bf5f95023d49a96a355be7ff43c326f8eb
2016-09-30 15:36:23 +02:00
Romain Goyet
bc35875b88 [Kandinsky] Fix parallel builds
Change-Id: I84c4512a51a3babcbddeb0d1faa0d18874cbb9fd
2016-09-15 20:36:12 +02:00
Romain Goyet
3e62ead069 [Kandinsky] drawChar now takes two colors
Change-Id: I0d99bb5e6c22ad582d82eae643168e6c1118f434
2016-09-15 16:34:01 +02:00
Romain Goyet
7d49decd03 [kandinsky] optimize KDFrameBuffer::pushRectUniform
Change-Id: Ie1217a8c70817110b52e505e1cf60eab08180cac
2016-08-29 13:38:06 +02:00
Romain Goyet
94b73b15d2 [Kandinksy] Define Blue and Green
Change-Id: I7b3f04424c2ebc484073a1d75d3bb931722c91ad
2016-08-29 13:37:44 +02:00
Romain Goyet
753a4a7cb5 [Ion] Move to C++
Change-Id: Id75fca5e92a3fdf18258015bcda7cd70297b0fdb
2016-08-23 16:30:15 +02:00
Romain Goyet
e1dcffd4ce [Kandinsky] Use fillRect instead of setPixel for text blitting
Change-Id: I8aa29abcfbd2f962d8991d24409019f4f58c627c
2016-08-19 16:58:12 +02:00
Romain Goyet
c5916572fe [Kandinsky] Inline very simple operations on KDPoint and KDSize
Change-Id: I35f6bc9450b35b1ab7a0dcadce69dddf932dd23f
2016-08-19 10:51:25 +02:00
Romain Goyet
b9b3a1b2e5 [Kandinsky] Inline very simple operations on KDRect
Change-Id: Ie46f7d159ef28cd30f059bdd96d3894137f2a675
2016-08-19 10:48:23 +02:00
Romain Goyet
7cbac15517 [Kandinsky] Add setters to KDRect
Change-Id: I0386a7469442ea42cf50e33b48f26509a9eba33a
2016-08-19 10:33:29 +02:00
Romain Goyet
f93da3b0d8 [Kandinsky] Create a KDText class for text measurement
Change-Id: Ie3ecd402b5476f41a2f8694a276f62495fbcdbd1
2016-08-19 10:31:15 +02:00
Romain Goyet
edf4ac9141 [kandinsky] Remove dead code
Change-Id: I26238032095a74990a2dc4e31429d56aa1d42c24
2016-08-18 17:15:22 +02:00
Romain Goyet
ec6392ccca [Kandinsky] Clean the font rasterizer
Change-Id: Id7bdfa286aa3138f98b0d8e7b3be2e2189e0ef2b
2016-08-12 18:29:14 +02:00
Romain Goyet
09ac89a47c [Kandinsky] Simple black-on-white text
Change-Id: Ie6b41624912273191b7a5dd46380aebd39387f10
2016-08-12 10:22:34 +02:00
Romain Goyet
6e0aeaf501 [kandinksy] Fix generation of the png font map
Change-Id: I6618deac5eab56f27fcea9912a6e867bde513599
2016-08-10 14:19:38 +02:00
Romain Goyet
5de28e01db Migrate Kandinsky to C++
Change-Id: I2752a8db84ad0bb817119cf6c2993c1622621150
2016-07-21 13:42:32 +02:00
Romain Goyet
30aa62e3c5 Escher: Introduce the TiledView
Change-Id: I97d612cf89bd9cf45f8b440881918b9626cd65f6
2016-07-21 11:32:33 +02:00
Romain Goyet
8e4b1666bb Kandinsky: KDFillRect takes a pattern, always
Change-Id: I32113345d742f21c0e238c1707bcee0116694d6f
2016-07-05 13:32:47 +02:00
Romain Goyet
0843fcd62c Kandinsky: Use a KDContext
Change-Id: I91055c7b59586b0dec08a426a9c617a12d8128dc
2016-07-05 10:36:48 +02:00
Romain Goyet
dbebe4aa8a Kandinsky: KDRectUnion
Change-Id: Ib328275ab3a6fc6da9bc472dffe37c9948c727d5
2016-06-20 15:02:57 +02:00
Romain Goyet
bfaa6109b4 Kandinsky: KDDrawingArea uses an origin and a clipping rect
Change-Id: Iee99bc0ce12f1c2f675f7ccb6edab579b62eb77c
2016-06-15 15:43:40 +02:00
Romain Goyet
b8a6d662b1 Kandinsky: Add a test for KDRect intersections
Change-Id: I98c8ec0d6ed4117e93ec96a05905f5e1eab14d25
2016-06-15 14:47:19 +02:00
Romain Goyet
e280a6e533 Kandinsky: Add KDColorGray
Change-Id: Ifc7831df4855f13dd989c896cec72562fe49e7bf
2016-06-14 17:03:49 +02:00
Romain Goyet
e3e9b2ca6b Kandinsky: Remove an useless line
Change-Id: Ic82481248964e637a56c297061249323821d206a
2016-06-13 17:54:41 +02:00
Romain Goyet
e2a6cdff15 Kandinsky: Get rid of KDCoordinateMax
Which is annoying to handle, because once you define it you have to
bother with additions overflowing...

Change-Id: I50b19858342c5a2909e3078f1a4167be50210db1
2016-06-13 17:51:17 +02:00
Romain Goyet
2bf599b786 Kandinsky: Introduce KDColorRGB
Change-Id: Ic64f2ff9a441580940d37151e190fd0a3d954d8a
2016-06-13 14:04:16 +02:00
Romain Goyet
6ae2412568 liba: Proper definition for 16 bits integers
Change-Id: I23bfd6e52eb09470b45e51a80b5b3320ee4f616f
2016-06-13 13:13:19 +02:00
Romain Goyet
80296e6448 Escher: use ion_fill_rect
Change-Id: Ibedac8cb7da905d5cfada6dbbce46cac4bab2eae
2016-06-10 18:30:19 +02:00
Romain Goyet
b3b6e6804f Kandinsky: Define drawing_area.h
Change-Id: I4fa0c1c0b900c7ba85e3ad2deeeedb5fc1ceb11a
2016-06-10 18:13:15 +02:00
Romain Goyet
4540fa8faa Kandinsky: Use KDCoordinateMax
Change-Id: I2b00caec2919496c0b69313f2b4a24b8c69688da
2016-05-31 15:45:34 +02:00
Romain Goyet
3c3c890179 Kandinsky: Fix the default drawing area
Change-Id: I194d8cc3055810b6dd8fd59d7ccd402eb1a97cab
2016-04-25 14:05:51 +02:00
Romain Goyet
74c3f74003 Kandinsky: Introduce KDSetDrawingArea
This restricts the drawing area and sets the drawing origin

Change-Id: I7911338ade6665a8be3b180912339da2430b0672
2016-04-25 14:04:14 +02:00
Romain Goyet
61854d118e Kandinsky: Add KDRectIntersect and update KDRectIntersection
One gives a boolean, the other the actual KDRect

Change-Id: I5a2e6d1110f0ad111ac2f3a46dcd072e72ea786d
2016-04-25 14:01:51 +02:00
Romain Goyet
cf17758081 Kandinsky: Add KDRect intersection
Change-Id: I61e28dcf742fad65c88d470305e5a6e33c8cad6b
2016-04-25 12:06:41 +02:00
Felix Raimundo
ff83c8c4da Draw rectangles with lines.
Change-Id: I257ea485e67d2cc1c2ad5f9405fe507f3f4d00f1
2016-04-04 11:05:49 +02:00
Felix Raimundo
418d081f6e Add the trig menu.
Change-Id: Ifbe2518cb3a089dace82d56031987fbc7a2e6181
2016-03-29 13:41:36 +02:00
Felix Raimundo
e0184ba975 Add a flag for inversing the intensity in char drawings.
Change-Id: Ibc22dd8aeaf95ef0aa49d2f9aa8867c47324ce80
2016-03-29 13:41:36 +02:00
Félix Raimundo
a18eac8059 Merge "Adds a text_input function to get text." 2016-03-23 18:55:13 +01:00
Felix Raimundo
fd95a7e558 Adds a text_input function to get text.
Also removes ion_getchar in favor of ion_get_event.

Change-Id: Id95ea509315185da24fd2a3fe90969da0bd19cfc
2016-03-23 17:31:59 +01:00