Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7745503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:02:22+00:00 2026-06-01T10:02:22+00:00

I started a very basic XNA 4.0 program where I load a small red

  • 0

I started a very basic XNA 4.0 program where I load a small red image of a dot in through the Content loader. The red dot is 10×10 and is rounded at the edges to make it look rounded. I am drawing it on-screen and updating its X and Y positions to that of the X and Y position of the Mouse. So basically it’s a custom red cursor.

Now my question is:
How would I go about using this cursor as a brush? When I click the left mouse button I want it to paint onto a blank Texture2D background that is the size of the current screen. It would function just like a paint brush in MSPAINT.

I imagine I would need an array of Vector2 points that holds the points that the mouse has moved over, and for each of these points when the update occurs it paints the dot on the background Texture2D?

It’s probably not very efficient but it was all I could think of at the time.

I’ve also read into changing color data of Texture2Ds but alas have had no luck.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:02:26+00:00Added an answer on June 1, 2026 at 10:02 am

    For those of you who are interested in how i managed to “paint” onscreen the whole code repository can be found here
    https://thefoofighter@github.com/thefoofighter/paint.git

    Its certainly best way to approach my problem but it does what i need it to do and since i dont need to worry about optimization with the bigger program im porting this into i havent tried making it better.

    There is a readme with the above Git that provides more information on changes and optimizations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently started looking into MQs and I had some very basic questions,
I just started using Selenium 2 tonight so this will be very basic (I
Very basic question here (I've just started with Python). I have a list object.
I'm just getting started with NServiceBus and I've got a very basic implementation up
I am just getting started using any DI/IoC toolset and have a very basic
I've started a very basic Eclipse (Helios) RCP application with the Hello RCP template.
I have just started C very recently and I have been asked to answer
I am very new (started today) to writing chrome extensions but need to write
I have just started getting a very strange error when using jQueryMobile for my
I am very new to Flex (started learning a couple of days back), I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.