Commit graph

  • babb70cf30 add more useful methods to GeneralBitmap trait and impls Gered 2023-04-14 12:19:28 -0400
  • e0a4ea9c5b increase MAX_KEYS constant to match underlying SDL key scancode max Gered 2023-04-13 14:44:36 -0400
  • 43c921680b add num_derive's FromPrimitive derive to keyboard and mouse button enums Gered 2023-04-13 14:43:13 -0400
  • 8e02fdd657 map our KeyModifiers bitflags struct to the original SDL values Gered 2023-04-12 15:20:24 -0400
  • db60579db4 fix mouse button event mapping Gered 2023-04-12 15:19:39 -0400
  • 7cff580bcb helper trait for imgui helper functions Gered 2023-04-11 22:12:55 -0400
  • 424c63d414 imgui_integration example initial commit, work in progress Gered 2023-04-10 16:38:38 -0400
  • 4069a92843 add generic pixel type parameter to SystemResources Gered 2023-04-09 20:33:44 -0400
  • d85293d9bf remove need to pass a system struct to prepare a new imgui frame Gered 2023-04-08 21:04:45 -0400
  • 0f4ed2965c add wrapper struct to simplify imgui init and usage Gered 2023-04-08 20:52:38 -0400
  • 3befd786ca adjust default imgui style's rounding settings Gered 2023-04-07 14:46:17 -0400
  • eeee7ed67b cleanup Gered 2023-04-07 14:31:27 -0400
  • 89be7f5e89 minor simplifications Gered 2023-04-07 14:30:22 -0400
  • e3d585ec90 initial commit of ggdt_imgui library Gered 2023-04-07 14:21:27 -0400
  • cf6b7e5e3c minor crate import cleanups Gered 2023-04-06 21:50:34 -0400
  • df31483cbd set opt-level = 1 on the dev profile by default Gered 2023-04-06 21:15:17 -0400
  • 231ba10f1e remove Copy trait from these event enums to be consistent with the rest Gered 2023-04-05 12:45:09 -0400
  • 1c39832801 add keyboard TextInput event mapping Gered 2023-04-05 12:42:57 -0400
  • f3b6ca46e1 move all of the triangle_2d draw implementations to their own functions Gered 2023-04-05 12:37:26 -0400
  • 097147c568 update visual reference test image affected by some recent changes Gered 2023-04-04 21:06:41 -0400
  • 29e5a8b080 some similar changes in indexed triangle_2d drawing Gered 2023-04-04 21:06:10 -0400
  • a0c1199264 changes for a bit more floating-point stability in triangle_2d rendering Gered 2023-04-04 21:05:33 -0400
  • 8aefdd6f0d update triangle_2d benchmarks Gered 2023-04-04 20:30:42 -0400
  • 4f58b68012 cleanup imports Gered 2023-04-04 20:29:53 -0400
  • 7a631e6088 make both 2d triangle enums derive Copy Gered 2023-04-04 18:37:10 -0400
  • 2b39f6ae88 add indexed triangle 2d visual reference tests Gered 2023-04-04 18:26:38 -0400
  • f564721e46 add blended triangle_2d drawing operations for IndexedBitmaps Gered 2023-04-04 18:25:38 -0400
  • d1fb0c6b2e add new blend function and rgba triangle 2d visual reference tests Gered 2023-04-04 17:52:00 -0400
  • 1985afe040 add triangle_list_2d method for rendering lists of triangles Gered 2023-04-04 17:50:48 -0400
  • 380bff59eb add BlendFunction::MultipliedBlend Gered 2023-04-04 15:34:23 -0400
  • 173aaa2579 rename blend_source_by_value to blend_argb32_source_by Gered 2023-04-04 15:27:13 -0400
  • 30e7be38db add a bunch of color function tests Gered 2023-04-04 13:02:38 -0400
  • 700f650561 add Display trait to our Pixel trait Gered 2023-04-04 08:42:38 -0400
  • ce7d8edc6d slightly improve some primitive drawing operations Gered 2023-04-04 08:41:57 -0400
  • 725dc12424 fix 2d triangle inner loop behaviour when applying fill rule Gered 2023-04-03 16:19:25 -0400
  • 39b788c564 fix 2d triangle clipping Gered 2023-04-03 14:41:14 -0400
  • 4b91d494d0 add some #[inline] attributes to various math stuff Gered 2023-04-03 14:40:40 -0400
  • e5fda9cb25 small enhancement to nearly_equal Gered 2023-04-03 13:50:41 -0400
  • ac9393d3a4 include alpha component in triangle per-vertex-color blending modes Gered 2023-04-03 13:50:00 -0400
  • f8d00135b2 re-add middle-of-pixel triangle sampling, which got mistakenly dropped Gered 2023-04-02 15:06:07 -0400
  • 68bbd8c13c implement top-left fill rules in triangle rendering Gered 2023-04-02 15:03:45 -0400
  • 49a8b23568 should be testing with '<=' so that we also draw edge pixels Gered 2023-04-02 15:03:17 -0400
  • 2280578904 add a bunch of extra RgbaBitmap textured triangle rendering options Gered 2023-04-01 22:17:34 -0400
  • 2695bf4679 add helper function to multiply two argb colors together Gered 2023-04-01 22:10:39 -0400
  • 2c7d78f0d1 add RgbaBitmap triangle blending options Gered 2023-04-01 21:37:00 -0400
  • a41fca5640 rename triangle SolidSingleColor enum variant to Solid Gered 2023-04-01 21:36:19 -0400
  • 3e4b9affa0 redo triangle 2d drawing api to use enums. split indexed+rgba variants Gered 2023-04-01 18:48:54 -0400
  • 7a5ea75e1f add color-component-to/from-packed functions for normalized components Gered 2023-04-01 18:45:58 -0400
  • eef0b4f7a4 important comment documenting a difference in this triangle algorithm Gered 2023-04-01 14:57:17 -0400
  • 6689f31146 implement triangle drawing "optimizations" Gered 2023-04-01 14:24:29 -0400
  • 67bcbec69b hack-fixes to triangle_2d_custom and bitmap texcoord sampling. ugh! Gered 2023-04-01 11:09:30 -0400
  • 80d3ae91e7 use bitmap sampling method instead of manually calculating it Gered 2023-04-01 00:50:56 -0400
  • ed58dc39cd add Bitmap texture coordinate sampling convenience method Gered 2023-04-01 00:49:52 -0400
  • a106228517 sample in the middle of pixels, instead of the top-left Gered 2023-04-01 00:40:05 -0400
  • 832daefbda add initial triangle_2d_textured method Gered 2023-03-31 23:27:15 -0400
  • 69bb0c4830 this should be a mutable reference argument Gered 2023-03-31 22:16:32 -0400
  • 4fcb6a9f0f add basic triangle_2d rendering criterion benchmark Gered 2023-03-31 22:11:37 -0400
  • 2b4c4d91dc fix broken criterion benchmarks Gered 2023-03-31 22:10:42 -0400
  • ff9960d325 add basic 2d triangle rendering Gered 2023-03-31 22:01:02 -0400
  • ad1dbee5fd add RgbaBitmap::from_bytes with some limited pixel format support Gered 2023-03-30 17:56:40 -0400
  • 1815a2236c update examples and doc comments code to reflect recent changes Gered 2023-03-29 15:50:30 -0400
  • cfd7d479ec add variable_screen_size example project Gered 2023-03-29 15:43:58 -0400
  • f2f1d83edf update Standard system resource with variable screen size support Gered 2023-03-29 15:40:37 -0400
  • 7143430769 update DosLike system resource with variable screen size support Gered 2023-03-29 14:19:55 -0400
  • e18238405c
    add actions workflow to do cargo check and test Gered 2023-03-28 21:03:09 -0400
  • 7f19f4e7d4 fix a bunch of clippy warnings Gered 2023-03-28 16:29:44 -0400
  • aa22786d43 update dependencies Gered 2023-03-28 14:04:48 -0400
  • 6973d5e039 add rustfmt.toml to the project root Gered 2023-03-27 18:46:33 -0400
  • ceaefad030 lets try using rustfmt again ... Gered 2023-03-27 18:43:41 -0400
  • 36c4cc1a41 remove these two unneeded extern crate lines Gered 2023-03-27 16:59:55 -0400
  • e503cfb718 remove old display size constants as well as cargo feature flags Gered 2023-03-27 16:48:55 -0400
  • 806725654a fix lingering compile errors in the example projects Gered 2023-03-27 16:46:04 -0400
  • e4608dee82 add visual tests for RgbaBitmap color tinted blit methods Gered 2023-03-26 18:34:58 -0400
  • cf021aa1de add RgbaBitmap color tinted blit methods Gered 2023-03-26 18:34:18 -0400
  • 7209907193 change to a better tint color used in visual test Gered 2023-03-26 17:59:42 -0400
  • b94ef4df4e add visual tests for BlendFunction blending Gered 2023-03-26 17:45:22 -0400
  • d2bc28754f add visual tests for RgbaBitmap blended drawing primitives Gered 2023-03-26 16:57:22 -0400
  • f233f810e6 add RgbaBitmap blended drawing primitives Gered 2023-03-26 16:36:53 -0400
  • 5c2571755a update blended_pixel_drawing visual test to test an unchecked method too Gered 2023-03-26 16:29:55 -0400
  • d238031166 update blended_rect visual test to reflect bug fix Gered 2023-03-26 16:29:07 -0400
  • 3864f36706 update IndexedBitmap blended primitives to use new generic functions Gered 2023-03-26 16:27:14 -0400
  • a667a657d2 add generic primitive drawing methods accepting custom pixel functions Gered 2023-03-26 16:26:15 -0400
  • 847149607d some cleanups and fixes Gered 2023-03-26 13:49:16 -0400
  • 48a76a59e0 add visual tests for the new blending RgbaBitmap blit methods Gered 2023-03-26 13:15:56 -0400
  • 0345571851 reorder blit method enums in a different and still arbitrary order Gered 2023-03-26 12:37:54 -0400
  • b38a4b55bc add RgbaBitmap blending blit methods Gered 2023-03-25 19:09:01 -0400
  • 050c2ac6e9 add color blending and tinting functions Gered 2023-03-25 19:08:20 -0400
  • a087c35024 add pixel format option to RgbaBitmap png saving Gered 2023-03-24 20:11:08 -0400
  • 29ab739323 update IndexedBitmap graphics visual tests to match the rgb tests Gered 2023-03-21 21:20:35 -0400
  • 9dcfa91502 add graphics visual tests for RgbaBitmap drawing operations Gered 2023-03-21 21:19:37 -0400
  • bb4a3655dc update graphics visual test references images that used the vga palette Gered 2023-03-21 18:21:26 -0400
  • 1f232c51bb fix 6-bit to 8-bit palette conversion Gered 2023-03-21 18:20:36 -0400
  • ba75ae04f1 set default pixel color for new Bitmap's differently based on type Gered 2023-03-21 16:55:57 -0400
  • 6a0be2756a add some useful rgba color constants Gered 2023-03-21 16:53:00 -0400
  • ec437974ee add RgbaBitmap::load_file Gered 2023-03-21 15:40:31 -0400
  • 04f57cf8da convert graphics visual tests reference images to png Gered 2023-03-21 15:25:25 -0400
  • b6e69ca084 allow png files to be loaded via IndexedBitmap::load_file Gered 2023-03-21 15:23:47 -0400
  • 6829800caa organize test assets a little bit better Gered 2023-03-21 15:09:47 -0400
  • 3d9d97db08 rename to avoid compiler warning Gered 2023-03-20 22:19:14 -0400
  • 11625f58a5 add png save tests Gered 2023-03-20 22:18:15 -0400