Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - putscrcharattr() write character and attribute to screen location http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 putscrcharattr()    Write character and attribute to screen location
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc putscrcharattr extern
   param value uint uRow, ;
         value uint uCol, ;
         value uint uCharAndAttribute

 Arguments
   uRow is a screen row.

   uCol is a screen column.

   uCharAndAttribute is a combined character code and color attribute.

 Return
   None.

 Description
   This procedure places the specified character together with an attribute
   at the specified screen position by doing a direct screen write,
   independent of the current screen driver.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_putscrcharattr
   // This shows how the character and the attribute can be combined in
   // one word.
   putscrcharattr( 1, 1, 'A' + RED_WHITE * 256 )
   endproc

   proc main
   Test_putscrcharattr()
   endproc

See Also: getscrcharattr() putscrattr() putscrchar()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson